IEditorFormatMap.AddProperties Method
Adds a ResourceDictionary for a new key.
Namespace: Microsoft.VisualStudio.Text.Classification
Assembly: Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)
Syntax
'Declaração
Sub AddProperties ( _
key As String, _
properties As ResourceDictionary _
)
void AddProperties(
string key,
ResourceDictionary properties
)
void AddProperties(
String^ key,
ResourceDictionary^ properties
)
abstract AddProperties :
key:string *
properties:ResourceDictionary -> unit
function AddProperties(
key : String,
properties : ResourceDictionary
)
Parameters
- key
Type: System.String
The key.
- properties
Type: System.Windows.ResourceDictionary
The new properties.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | key is null or empty. |
ArgumentException | key already exists in the map. |
Remarks
key must be a new key and not an existing key.Adding a new type will not cause the FormatMappingChanged event to be raised.
.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.