ElementPropertyDescriptor.GetSetValueTransactionName Method
Returns a localized string for the name of the set value transaction.
Namespace: Microsoft.VisualStudio.Modeling.Design
Assembly: Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'Declaration
Public Shared Function GetSetValueTransactionName ( _
caption As String _
) As String
'Usage
Dim caption As String
Dim returnValue As String
returnValue = ElementPropertyDescriptor.GetSetValueTransactionName(caption)
public static string GetSetValueTransactionName(
string caption
)
public:
static String^ GetSetValueTransactionName(
String^ caption
)
public static function GetSetValueTransactionName(
caption : String
) : String
Parameters
caption
Type: System.StringThe localized string that describes the value that will be set.
Return Value
Type: System.String
A localized string for the name of the set value transaction.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | caption is nulla null reference (Nothing in Visual Basic) or the empty string (""). |
Remarks
The SetValue method initiates a set value transaction for the described property.
The phrase is localized based on the culture that is used by the current thread. The resources shipped with the Visual Studio 2008 SDK only support English.
This method uses composition to generate the phrase.
.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.
See Also
Reference
ElementPropertyDescriptor Class
ElementPropertyDescriptor Members
Microsoft.VisualStudio.Modeling.Design Namespace
Change History
Date |
History |
Reason |
---|---|---|
July 2008 |
Added topic. |
Content bug fix. |