Solution2.ExtenderCATID Property
Gets the Extender category ID (CATID) for the object.
Namespace: EnvDTE80
Assembly: EnvDTE80 (in EnvDTE80.dll)
Syntax
'Declaration
ReadOnly Property ExtenderCATID As String
string ExtenderCATID { get; }
property String^ ExtenderCATID {
String^ get ();
}
abstract ExtenderCATID : string with get
function get ExtenderCATID () : String
Property Value
Type: String
A GUID representing the CATID of the object.
Remarks
Returns the GUID representing the CATID of the object as a string.
Note
The CATID is typically specific to an implementation of an object. For example, the Project.ExtenderCATID for a Visual Basic project object is different from the Project.ExtenderCATID for a Visual C++ project object.
Examples
For information on how to run this add-in code, see How to: Compile and Run the Automation Object Model Code Examples.
The following example displays the CATID of an open solution.
Sub ExtenderCATIDExample(ByVal dte As DTE2)
Dim objDoc As Document = dte.ActiveDocument
If Not (objDoc Is Nothing) Then
MsgBox(objDoc.ExtenderCATID)
End If
End Sub
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.