AddIn.Guid Property

Gets the GUID for the AddIn object.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Syntax

'Declaration
ReadOnly Property Guid As String
'Usage
Dim instance As AddIn 
Dim value As String 

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

Property Value

Type: System.String

  • A string representing the CLSID of the add-in as obtained from the add-in's registry entry.

Examples

public void Example2(AddIn addin)
{
   try
   {
      MessageBox.Show(addin.Guid);
   }
   catch (Exception ex)
   {
      MessageBox.Show(ex.Message);
   }
}

.NET Framework Security

See Also

Reference

AddIn Interface

AddIn Members

EnvDTE Namespace

Other Resources

How to: Compile and Run the Automation Object Model Code Examples