Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets the value of the specified property or creates the property if it does not exist.
Namespace: Microsoft.VisualStudio.Tools.Applications.DesignTime.Interop
Assembly: Microsoft.VisualStudio.Tools.Applications.DesignTime.v9.0 (in Microsoft.VisualStudio.Tools.Applications.DesignTime.v9.0.dll)
Syntax
'Declaration
Sub SetProperty ( _
name As String, _
value As String _
)
'Usage
Dim instance As IVstaHostAdapter
Dim name As String
Dim value As String
instance.SetProperty(name, value)
void SetProperty(
string name,
string value
)
void SetProperty(
String^ name,
String^ value
)
function SetProperty(
name : String,
value : String
)
Parameters
name
Type: System.StringThe name of the property.
value
Type: System.StringThe value of the property.
Remarks
You can create properties to store values in the <HostProperties> section of the project file. These values are persisted when the project is closed.
.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
Microsoft.VisualStudio.Tools.Applications.DesignTime.Interop Namespace