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!

C# Attributes

This section contains an introduction to attributes and descriptions of the predefined attributes.

Custom attributes

AttributeUsage Describes how a custom attribute class can be used.

Conditional methods

conditional Marks a conditional method, a method whose execution depends on a specified preprocessing identifier.

Interoperability with unmanaged code

comimport Marks a class as being an externally implemented COM coclass.
dispid Specifies the COM dispatch ID of a method, field, or property.
dllimport Identifies a method as being implemented externally by a function exported by an unmanaged DLL.
guid Specifies a globally unique identifier (GUID) for a class or an interface.
in Indicates a parameter that is to be passed from the caller to the called method.
interfacetype Specifies the type of an interface: dispinterface, dual, or derived from IUnknown.
marshal Describes the unmanaged marshaling format for a parameter, field, or method return value.
out Indicates a parameter that is to be passed from the called method to the caller.
returnshresult Marks a method or property as adhering to COM calling conventions rather than NGWS calling conventions.
structlayout Specifies the unmanaged layout of fields in a managed class or struct.
structoffset Specifies the offsets for fields in a class or struct.

Serialization

nonserialized Prevents a field or property from being serialized.
serializable Marks a class or struct as being serializable.

Obsolete entities

obsolete Marks a program entity that should not be used.

See Also

CLR 17 Attributes | Attributes Tutorial | Introduction to Attributes