NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Using Global Attributes in Managed Extensions for C++

Most attributes are attached to specific language elements, such as classes or methods. However, some attributes are global — they apply to an entire assembly or module. Global attributes can appear in multiple source files in a single compilation.

Assembly-level attributes are specified as follows:

[assembly::attribute]

Module-level attributes are specified as follows:

[module::attribute]
attribute
An applicable global attribute.

The following NGWS attributes let you modify the information in an assembly:

If you do not want an assembly created for a compilation, use the compiler option /com+:noassembly.

To specify multiple assembly or module-level attributes in a single attribute block, each attribute must be separated by a comma. For instance, the following sample specifies two assembly-level attributes:

[assembly::System::CLSCompliant(true), assembly::System::Expando];

Example

[assembly::System::CLSCompliant(true)];

See Also

Global Attributes