Share via


IVstaHostItem.GenerateCode Property

Gets or sets a value that specifies whether the code-behind file will be generated.

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

Syntax

'Declaration
ReadOnly Property GenerateCode As Boolean
'Usage
Dim instance As IVstaHostItem 
Dim value As Boolean 

value = instance.GenerateCode
bool GenerateCode { get; }
property bool GenerateCode {
    bool get ();
}
function get GenerateCode () : boolean

Property Value

Type: System.Boolean
true if the code-behind file will be generated; otherwise false.

Remarks

The default value is true. When code is not generated, it is the host's responsibility to use the EnvDTE.DTE class to generate the correct code-behind file.

.NET Framework Security

See Also

Reference

IVstaHostItem Interface

IVstaHostItem Members

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