Gets the named string resource from the specified assembly.
Namespace:
Microsoft.ConfigurationManagement.AdminConsole.Common
Assembly:
Microsoft.ConfigurationManagement.ManagementProvider (in
microsoft.configurationmanagement.managementprovider.dll)
Usage
Visual Basic |
Dim assemblyDescription As AssemblyDescription
Dim resourceName As String
Dim returnString As String
Dim returnValue As Boolean
returnValue = UtilityClass.TryGetStringFromAssembly(assemblyDescription, resourceName, returnString)
|
Syntax
Visual Basic |
<PermissionSetAttribute(SecurityAction.LinkDemand, Name:="FullTrust")> _
<PermissionSetAttribute(SecurityAction.InheritanceDemand, Name:="FullTrust")> _
Public Shared Function TryGetStringFromAssembly ( _
assemblyDescription As AssemblyDescription, _
resourceName As String, _
<OutAttribute> ByRef returnString As String _
) As Boolean
|
C# |
[PermissionSetAttribute(SecurityAction.LinkDemand, Name="FullTrust")]
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name="FullTrust")]
public static bool TryGetStringFromAssembly (
AssemblyDescription assemblyDescription,
string resourceName,
out string returnString
)
|
C++ |
[PermissionSetAttribute(SecurityAction::LinkDemand, Name=L"FullTrust")]
[PermissionSetAttribute(SecurityAction::InheritanceDemand, Name=L"FullTrust")]
public:
static bool TryGetStringFromAssembly (
AssemblyDescription^ assemblyDescription,
String^ resourceName,
[OutAttribute] String^% returnString
)
|
J# |
/** @attribute PermissionSetAttribute(SecurityAction.LinkDemand, Name="FullTrust") */
/** @attribute PermissionSetAttribute(SecurityAction.InheritanceDemand, Name="FullTrust") */
public static boolean TryGetStringFromAssembly (
AssemblyDescription assemblyDescription,
String resourceName,
/** @attribute OutAttribute() */ /** @ref */ String returnString
)
|
Parameters
- assemblyDescription
-
[in]
AssemblyDescription object that defines an assembly.
- resourceName
-
[in] Name of a resource.
- returnString
-
[out] The resource string.
Return Value
true if the resource string is retrieved; otherwise
false.
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.
Platforms
Development Platforms
Windows Server 2003, Windows Vista
Target Platforms
Windows Server 2003,Windows Vista
See Also