AddIn.Guid Property
Gets the GUID for the AddIn object.
Namespace: EnvDTE
Assembly: EnvDTE (in EnvDTE.dll)
'Declaration
ReadOnly Property Guid As String
string Guid { get; }
property String^ Guid {
String^ get ();
}
abstract Guid : string with get
function get Guid () : String
Type: System.String
- A string representing the CLSID of the add-in as obtained from the add-in's registry entry.
public void Example2(AddIn addin)
{
try
{
MessageBox.Show(addin.Guid);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
- 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.
How to: Compile and Run the Automation Object Model Code Examples