Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Updates the value of the specified property to the given integer value while setting its data type to [!:SettingsType.Int32].
Namespace: Microsoft.VisualStudio.Settings
Assembly: Microsoft.VisualStudio.Settings (in Microsoft.VisualStudio.Settings.dll)
Syntax
'Declaration
Public MustOverride Sub SetInt32 ( _
collectionPath As String, _
propertyName As String, _
value As Integer _
)
'Usage
Dim instance As WritableSettingsStore
Dim collectionPath As String
Dim propertyName As String
Dim value As Integer
instance.SetInt32(collectionPath, propertyName, _
value)
public abstract void SetInt32(
string collectionPath,
string propertyName,
int value
)
public:
virtual void SetInt32(
String^ collectionPath,
String^ propertyName,
int value
) abstract
abstract SetInt32 :
collectionPath:string *
propertyName:string *
value:int -> unit
public abstract function SetInt32(
collectionPath : String,
propertyName : String,
value : int
)
Parameters
- collectionPath
Type: System.String
Path of the collection of the property.
- propertyName
Type: System.String
Name of the property.
- value
Type: System.Int32
New value of the property.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | If the collection does not exist, this exception is thrown. |
Remarks
If the previous data type of the property is different, it overwrites it.
If the property does not exist it creates one.
.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.