Megosztás a következőn keresztül:


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 with 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

EnvDTE Namespace

Other Resources

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