This documentation is archived and is not being maintained.

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
public virtual object TypeId {get;}
public: __property virtual Object* get_TypeId();
public function get TypeId() : Object;

Property Value

An Object that is a unique identifier for the attribute.


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.


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

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


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