IVsWritableSettingsStore.SetInt Method
Sets the value of an integer property. If the previous data type of the property is not SettingsType_Int, this method overwrites it. If the property does not exist, it creates one.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)
Syntax
'Declaration
Function SetInt ( _
collectionPath As String, _
propertyName As String, _
value As Integer _
) As Integer
int SetInt(
string collectionPath,
string propertyName,
int value
)
int SetInt(
[InAttribute] String^ collectionPath,
[InAttribute] String^ propertyName,
[InAttribute] int value
)
abstract SetInt :
collectionPath:string *
propertyName:string *
value:int -> int
function SetInt(
collectionPath : String,
propertyName : String,
value : int
) : int
Parameters
- collectionPath
Type: System.String
[in] The path to the collection.
- propertyName
Type: System.String
[in] The property.
- value
Type: System.Int32
[in] The value.
Return Value
Type: System.Int32
Returns S_OK if the value was set. If the collection does not exist, the method returns E_INVALIDARG.
.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.