System.Runtime.CompilerServices.NativeCppClassAttribute Class

Applies metadata to an assembly that indicates that a type is an unmanaged type. This class cannot be inherited.

See Also: NativeCppClassAttribute Members

Syntax

[System.AttributeUsage(System.AttributeTargets.Struct, Inherited=true)]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class NativeCppClassAttribute : Attribute

Remarks

Compilers use the System.Runtime.CompilerServices.NativeCppClassAttribute attribute when building assemblies to indicate that a type is an unmanaged type defined in C or C++. This attribute is used later to correctly handle the unmanaged type when it is imported during interop.

Requirements

Namespace: System.Runtime.CompilerServices
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0