ElementPropertyDescriptor.GetSetValueTransactionName 方法

返回设置值事务名称的本地化字符串。

命名空间:  Microsoft.VisualStudio.Modeling.Design
程序集:  Microsoft.VisualStudio.Modeling.Sdk.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.12.0.dll 中)

语法

声明
Public Shared Function GetSetValueTransactionName ( _
    caption As String _
) As String
public static string GetSetValueTransactionName(
    string caption
)

参数

  • caption
    类型:System.String
    说明将要设置的值的本地化字符串。

返回值

类型:System.String
设置值事务名称的本地化字符串。

异常

异常 条件
ArgumentNullException

caption 为 nullnull 引用(在 Visual Basic 中为 Nothing) 或是空字符串 ("")。

备注

SetValue 方法启动中描述的属性值集合的事务。

演示如何本地化基于当前线程使用的区域性。 资源随 Visual Studio SDK 仅支持英语。

此方法使用复合生成说明。

.NET Framework 安全性

请参阅

参考

ElementPropertyDescriptor 类

Microsoft.VisualStudio.Modeling.Design 命名空间

CurrentCulture