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!

Type.Attributes

Gets a bitmask indicating the attributes associated with the Type.

[Visual Basic]
Public ReadOnly Property Attributes As TypeAttributes
[C#]
public TypeAttributes Attributes {get;}
[C++]
public: __property TypeAttributes get_Attributes();
[JScript]
public function get Attributes() : TypeAttributes;

Property Value

A TypeAttributes object representing the attribute set of the Type.

Example

if (t.Attributes & TypeAttributes.ClassSemanticsMask) == TypeAttributes.Interface)
    Console.WriteLine ("t is an Interface");
if (t.Attributes & TypeAttributes.ClassSemanticsMask) == TypeAttributes.ValueType)
    Console.WriteLine ("t is a value type");
if (t.Attributes & & TypeAttributes.Public) != 0)
    Console.WriteLine ("t is public");

See Also

Type Class | Type Members | System Namespace | GetAttributeFlagsImpl | TypeAttributes