Updates the value of the specified property to the given string value while setting its data type to [!:SettingsType.String].
Namespace:  Microsoft.VisualStudio.Settings
Assembly:  Microsoft.VisualStudio.Settings (in Microsoft.VisualStudio.Settings.dll)
Syntax
声明
Public MustOverride Sub SetString ( _
    collectionPath As String, _
    propertyName As String, _
    value As String _
)
用法
Dim instance As WritableSettingsStore
Dim collectionPath As String
Dim propertyName As String
Dim value As String
instance.SetString(collectionPath, propertyName, _
    value)
public abstract void SetString(
    string collectionPath,
    string propertyName,
    string value
)
public:
virtual void SetString(
    String^ collectionPath, 
    String^ propertyName, 
    String^ value
) abstract
abstract SetString : 
        collectionPath:string * 
        propertyName:string * 
        value:string -> unit 
public abstract function SetString(
    collectionPath : String, 
    propertyName : String, 
    value : String
)
Parameters
- collectionPath
 Type: System.String
 Path of the collection of the property.
- propertyName
 Type: System.String
 Name of the property.
- value
 Type: System.String
 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.