Share via


IVstaHostItem.Cookie Property

Gets or sets a string that identifies a HostItem when a service request is made to the host.

Namespace:  Microsoft.VisualStudio.Tools.Applications.ProgrammingModel.Interop
Assembly:  Microsoft.VisualStudio.Tools.Applications.ProgrammingModel (in Microsoft.VisualStudio.Tools.Applications.ProgrammingModel.dll)

Syntax

'Declaration
Property Cookie As String
'Usage
Dim instance As IVstaHostItem 
Dim value As String 

value = instance.Cookie

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

Property Value

Type: System.String
A user-specified string that uniquely identifies the HostItem.

Remarks

The host can use the cookie to identify the correct instance of the object to pass back. For example, when there are multiple drawings open in ShapeApp, the cookie informs the host which drawing instance to pass back.

.NET Framework Security

See Also

Reference

IVstaHostItem Interface

IVstaHostItem Members

Microsoft.VisualStudio.Tools.Applications.ProgrammingModel.Interop Namespace