Assembly: Microsoft.ConfigurationManagement.ManagementProvider (in microsoft.configurationmanagement.managementprovider.dll)
Usage
Visual Basic |
---|
Dim sender As Object Dim resultObject As IResultObject Dim propertyName As String Dim returnValue As String returnValue = ResultObjectDisplayHelpers.LanguageDisplayString(sender, resultObject, propertyName) |
Syntax
Visual Basic |
---|
Public Shared Function LanguageDisplayString ( _ sender As Object, _ resultObject As IResultObject, _ propertyName As String _ ) As String |
C# |
---|
public static string LanguageDisplayString ( Object sender, IResultObject resultObject, string propertyName ) |
C++ |
---|
public: static String^ LanguageDisplayString ( Object^ sender, IResultObject^ resultObject, String^ propertyName ) |
J# |
---|
public static String LanguageDisplayString ( Object sender, IResultObject resultObject, String propertyName ) |
JScript |
---|
public static function LanguageDisplayString ( sender : Object, resultObject : IResultObject, propertyName : String ) : String |
Parameters
- sender
-
[in] System.Object instance that indicates the sender of an event notifying that the language name is needed.
- resultObject
-
[in] IResultObject interface for getting and setting result object properties.
- propertyName
-
[in] Name of the property.
Return Value
Language display string.Exceptions
Exception type | Condition |
---|---|
ArgumentNullException |
The resultObject parameter cannot be null. |
ArgumentException |
The propertyName parameter cannot be null or an empty string. |
Thread Safety
Any public static (Shared in Visual
Basic) members of this type are thread safe. Any instance members
are not guaranteed to be thread safe.