设置键的 ResourceDictionary。
命名空间: Microsoft.VisualStudio.Text.Classification
程序集: Microsoft.VisualStudio.Text.UI.Wpf(在 Microsoft.VisualStudio.Text.UI.Wpf.dll 中)
语法
声明
Sub SetProperties ( _
key As String, _
properties As ResourceDictionary _
)
void SetProperties(
string key,
ResourceDictionary properties
)
void SetProperties(
String^ key,
ResourceDictionary^ properties
)
abstract SetProperties :
key:string *
properties:ResourceDictionary -> unit
function SetProperties(
key : String,
properties : ResourceDictionary
)
参数
key
类型:String键。
properties
类型:ResourceDictionary属性的新 ResourceDictionary。
备注
设置文本属性将导致 FormatMappingChanged 引发事件。
如果设置的 ResourceDictionary 不包含预期的属性,属性的使用者可能会引发异常。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。