Freigeben über


IEditorFormatMap.AddProperties-Methode

Fügt ein ResourceDictionary für einen neuen Schlüssel hinzu.

Namespace:  Microsoft.VisualStudio.Text.Classification
Assembly:  Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)

Syntax

'Declaration
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
)

Parameter

  • key
    Typ: String

    Der Schlüssel.

  • properties
    Typ: ResourceDictionary

    Die neuen Eigenschaften.

Ausnahmen

Ausnahme Bedingung
ArgumentNullException

key ist NULL oder leer.

ArgumentException

key ist bereits in der Zuordnung.

Hinweise

key muss einen neuen Schlüssel und keine vorhandenen Schlüssel handeln. Das Hinzufügen eines neuen Typs wird nicht das FormatMappingChanged-Ereignis ausgelöst.

.NET Framework-Sicherheit

Siehe auch

Referenz

IEditorFormatMap Schnittstelle

Microsoft.VisualStudio.Text.Classification-Namespace