Partilhar via


WriteCodeFragment.AssemblyAttributes Property

Definition

Description of attributes to write. Item include is the full type name of the attribute. For example, "System.AssemblyVersionAttribute". Each piece of metadata is the name-value pair of a parameter, which must be of type System.String. Some attributes only allow positional constructor arguments, or the user may just prefer them. To set those, use metadata names like "_Parameter1", "_Parameter2" etc. If a parameter index is skipped, it's an error.

public:
 property cli::array <Microsoft::Build::Framework::ITaskItem ^> ^ AssemblyAttributes { cli::array <Microsoft::Build::Framework::ITaskItem ^> ^ get(); void set(cli::array <Microsoft::Build::Framework::ITaskItem ^> ^ value); };
public Microsoft.Build.Framework.ITaskItem[] AssemblyAttributes { get; set; }
public Microsoft.Build.Framework.ITaskItem[] AssemblyAttributes { [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] get; [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] set; }
member this.AssemblyAttributes : Microsoft.Build.Framework.ITaskItem[] with get, set
[<get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
[<set: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
member this.AssemblyAttributes : Microsoft.Build.Framework.ITaskItem[] with get, set
Public Property AssemblyAttributes As ITaskItem()

Property Value

An item whose value is the full type name of the attribute. For example, "System.AssemblyVersionAttribute".

Attributes

Remarks

Each piece of metadata is the name-value pair of a parameter, which must be of type System.String.

Some attributes only allow positional constructor arguments, or the user may just prefer them. To set those, use metadata names like "_Parameter1", "_Parameter2" etc. If a parameter index is skipped, it's an error.

Applies to