AddIn.Guid Property
Gets the GUID for the AddIn object.
Namespace: EnvDTE
Assembly: EnvDTE (in EnvDTE.dll)
Syntax
'Declaration
ReadOnly Property Guid As String
string Guid { get; }
property String^ Guid {
String^ get ();
}
abstract Guid : string
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
- 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.
See Also
Reference
Other Resources
How to: Compile and Run the Automation Object Model Code Examples