Share via


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
'Usage
Dim instance As Solution2 
Dim value As String 

value = instance.ExtenderCATID
string ExtenderCATID { get; }
property String^ ExtenderCATID {
    String^ get ();
}
function get ExtenderCATID () : String

Property Value

Type: System.String
A GUID representing the CATID of the object.

Implements

_Solution.ExtenderCATID

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

See Also

Reference

Solution2 Interface

Solution2 Members

ExtenderCATID Overload

EnvDTE80 Namespace

Other Resources

Implementing and Using Automation Extenders