Export (0) Print
Expand All

Attribute.TypeId Property

When implemented in a derived class, gets a unique identifier for this Attribute.

[Visual Basic]
Public Overridable ReadOnly Property TypeId As Object
[C#]
public virtual object TypeId {get;}
[C++]
public: __property virtual Object* get_TypeId();
[JScript]
public function get TypeId() : Object;

Property Value

An Object that is a unique identifier for the attribute.

Remarks

As implemented, this identifier is merely the Type of the attribute. However, it is intended that the unique identifier be used to identify two attributes of the same type.

Example

The following code example implements the TypeId property in a custom parameter attribute class and shows its use.

[SampleID='System.Attribute.TypeId' SnippetID='1']

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Attribute Class | Attribute Members | System Namespace

Show:
© 2014 Microsoft