Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft