Gets a security object alias for the specified class. Namespace: Microsoft.ConfigurationManagement.ManagementProvider
Assembly: Microsoft.ConfigurationManagement.ManagementProvider (in microsoft.configurationmanagement.managementprovider.dll)

Usage

Visual Basic
Dim className As String
Dim aliasName As String
Dim returnValue As Boolean

returnValue = SmsSecurityObject.TryGetSecurityObjectAlias(className, aliasName)

Syntax

Visual Basic
Public Shared Function TryGetSecurityObjectAlias ( _
		className As String, _
		<OutAttribute> ByRef aliasName As String _
) As Boolean
C#
public static bool TryGetSecurityObjectAlias (
		string className,
		out string aliasName
)
C++
public:
static bool TryGetSecurityObjectAlias (
		String^ className, 
		[OutAttribute] String^% aliasName
)
J#
public static boolean TryGetSecurityObjectAlias (
		String className, 
		/** @attribute OutAttribute() */ /** @ref */ String aliasName
)
JScript

Parameters

className

[in] Name of a management provider class.

aliasName

[out] Name of an alias for the corresponding security object.

Return Value

true if the method retrieves a security object alias; 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