The Client element defines a single wrapper class that will be generated. The attributes of the Client element are summarized below. All attributes are required.
An instruction file normally contains two Client elements, one with type COM, and the other with type VBA.
Guids are supplied when the information file is created, and should not usually be changed afterwards.
Attributes
Attribute | Required | Description | Example(s) |
---|---|---|---|
Type | Required | The type of client: either COM or VBA. |
COM VBA |
Namespace | Required | The namespace used for the generated class. | MyCompany.Analytics |
Class | Required | The name of the generated C# wrapper class. | MyXllAddin |
ClassGuid | Required | The globally unique identifier of the generated class. | 14636546-A5DE-40F9-B02B-1847BC47C9E5 |
Interface | Required | The name of the COM interface class which will be used as the wrapper class’s defaultinterface. | IMyXllAddin |
InterfaceGuid | Required | The globally unique identifier of the generated interface | 7CBD1C10-C089-4D34-8BC4-633B729C49C1 |