# C1.Diagnostics.CodeAnalysis.DynamicDependencyAttribute

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Diagnostics_CodeAnalysis_DynamicDependencyAttribute" data-uid="C1.Diagnostics.CodeAnalysis.DynamicDependencyAttribute" class="text-break">DynamicDependencyAttribute Class
</h1>
  <div class="markdown level0 summary"><p>States a dependency that one member has on another.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.attribute">Attribute</a></div>
    <div class="level2"><span class="xref">DynamicDependencyAttribute</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Diagnostics.CodeAnalysis.html">C1.Diagnostics.CodeAnalysis</a></h6>
  <h6><strong>Assembly</strong>: C1.DataCollection.dll</h6>
  <h5 id="C1_Diagnostics_CodeAnalysis_DynamicDependencyAttribute_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[AttributeUsage(AttributeTargets.Constructor|AttributeTargets.Method|AttributeTargets.Field, AllowMultiple = true, Inherited = false)]
public sealed class DynamicDependencyAttribute : Attribute</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;AttributeUsage(AttributeTargets.ConstructorOrAttributeTargets.MethodOrAttributeTargets.Field, AllowMultiple:=True, Inherited:=False)&gt;
Public NotInheritable Class DynamicDependencyAttribute
    Inherits Attribute</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Diagnostics_CodeAnalysis_DynamicDependencyAttribute__ctor_C1_Diagnostics_CodeAnalysis_DynamicallyAccessedMemberTypes_System_String_System_String_" data-uid="C1.Diagnostics.CodeAnalysis.DynamicDependencyAttribute.#ctor(C1.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes,System.String,System.String)">
          <a class="xref" href="C1.Diagnostics.CodeAnalysis.DynamicDependencyAttribute.-ctor.html#C1_Diagnostics_CodeAnalysis_DynamicDependencyAttribute__ctor_C1_Diagnostics_CodeAnalysis_DynamicallyAccessedMemberTypes_System_String_System_String_">DynamicDependencyAttribute(DynamicallyAccessedMemberTypes, string, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the System.Diagnostics.CodeAnalysis.DynamicDependencyAttribute class with the specified signature of a member on the same type as the consumer.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Diagnostics_CodeAnalysis_DynamicDependencyAttribute__ctor_C1_Diagnostics_CodeAnalysis_DynamicallyAccessedMemberTypes_System_Type_" data-uid="C1.Diagnostics.CodeAnalysis.DynamicDependencyAttribute.#ctor(C1.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes,System.Type)">
          <a class="xref" href="C1.Diagnostics.CodeAnalysis.DynamicDependencyAttribute.-ctor.html#C1_Diagnostics_CodeAnalysis_DynamicDependencyAttribute__ctor_C1_Diagnostics_CodeAnalysis_DynamicallyAccessedMemberTypes_System_Type_">DynamicDependencyAttribute(DynamicallyAccessedMemberTypes, Type)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the System.Diagnostics.CodeAnalysis.DynamicDependencyAttribute class with the specified signature of a member on the same type as the consumer.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Diagnostics_CodeAnalysis_DynamicDependencyAttribute__ctor_System_String_" data-uid="C1.Diagnostics.CodeAnalysis.DynamicDependencyAttribute.#ctor(System.String)">
          <a class="xref" href="C1.Diagnostics.CodeAnalysis.DynamicDependencyAttribute.-ctor.html#C1_Diagnostics_CodeAnalysis_DynamicDependencyAttribute__ctor_System_String_">DynamicDependencyAttribute(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the System.Diagnostics.CodeAnalysis.DynamicDependencyAttribute class with the specified signature of a member on the same type as the consumer.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Diagnostics_CodeAnalysis_DynamicDependencyAttribute__ctor_System_String_System_String_System_String_" data-uid="C1.Diagnostics.CodeAnalysis.DynamicDependencyAttribute.#ctor(System.String,System.String,System.String)">
          <a class="xref" href="C1.Diagnostics.CodeAnalysis.DynamicDependencyAttribute.-ctor.html#C1_Diagnostics_CodeAnalysis_DynamicDependencyAttribute__ctor_System_String_System_String_System_String_">DynamicDependencyAttribute(string, string, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the System.Diagnostics.CodeAnalysis.DynamicDependencyAttribute class with the specified signature of a member on the same type as the consumer.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Diagnostics_CodeAnalysis_DynamicDependencyAttribute__ctor_System_String_System_Type_" data-uid="C1.Diagnostics.CodeAnalysis.DynamicDependencyAttribute.#ctor(System.String,System.Type)">
          <a class="xref" href="C1.Diagnostics.CodeAnalysis.DynamicDependencyAttribute.-ctor.html#C1_Diagnostics_CodeAnalysis_DynamicDependencyAttribute__ctor_System_String_System_Type_">DynamicDependencyAttribute(string, Type)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the System.Diagnostics.CodeAnalysis.DynamicDependencyAttribute class with the specified signature of a member on the same type as the consumer.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Diagnostics_CodeAnalysis_DynamicDependencyAttribute_AssemblyName" data-uid="C1.Diagnostics.CodeAnalysis.DynamicDependencyAttribute.AssemblyName">
          <a class="xref" href="C1.Diagnostics.CodeAnalysis.DynamicDependencyAttribute.AssemblyName.html#C1_Diagnostics_CodeAnalysis_DynamicDependencyAttribute_AssemblyName">AssemblyName</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the assembly name of the specified type.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Diagnostics_CodeAnalysis_DynamicDependencyAttribute_Condition" data-uid="C1.Diagnostics.CodeAnalysis.DynamicDependencyAttribute.Condition">
          <a class="xref" href="C1.Diagnostics.CodeAnalysis.DynamicDependencyAttribute.Condition.html#C1_Diagnostics_CodeAnalysis_DynamicDependencyAttribute_Condition">Condition</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the condition in which the dependency is applicable.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Diagnostics_CodeAnalysis_DynamicDependencyAttribute_MemberSignature" data-uid="C1.Diagnostics.CodeAnalysis.DynamicDependencyAttribute.MemberSignature">
          <a class="xref" href="C1.Diagnostics.CodeAnalysis.DynamicDependencyAttribute.MemberSignature.html#C1_Diagnostics_CodeAnalysis_DynamicDependencyAttribute_MemberSignature">MemberSignature</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the signature of the member depended on.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Diagnostics_CodeAnalysis_DynamicDependencyAttribute_MemberTypes" data-uid="C1.Diagnostics.CodeAnalysis.DynamicDependencyAttribute.MemberTypes">
          <a class="xref" href="C1.Diagnostics.CodeAnalysis.DynamicDependencyAttribute.MemberTypes.html#C1_Diagnostics_CodeAnalysis_DynamicDependencyAttribute_MemberTypes">MemberTypes</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the types of the members that are depended on, for example, fields and properties.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Diagnostics_CodeAnalysis_DynamicDependencyAttribute_Type" data-uid="C1.Diagnostics.CodeAnalysis.DynamicDependencyAttribute.Type">
          <a class="xref" href="C1.Diagnostics.CodeAnalysis.DynamicDependencyAttribute.Type.html#C1_Diagnostics_CodeAnalysis_DynamicDependencyAttribute_Type">Type</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the System.Type containing the specified member.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Diagnostics_CodeAnalysis_DynamicDependencyAttribute_TypeName" data-uid="C1.Diagnostics.CodeAnalysis.DynamicDependencyAttribute.TypeName">
          <a class="xref" href="C1.Diagnostics.CodeAnalysis.DynamicDependencyAttribute.TypeName.html#C1_Diagnostics_CodeAnalysis_DynamicDependencyAttribute_TypeName">TypeName</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the full name of the type containing the specified member.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
