Udostępnij za pośrednictwem


SmsSecurityObject.TryGetSecurityObjectAlias Method

Gets a security object alias for the specified class.

Namespace: Microsoft.ConfigurationManagement.ManagementProvider
Assembly: Microsoft.ConfigurationManagement.ManagementProvider (in microsoft.configurationmanagement.managementprovider.dll)

Usage

'Usage
Dim className As String
Dim aliasName As String
Dim returnValue As Boolean

returnValue = SmsSecurityObject.TryGetSecurityObjectAlias(className, aliasName)

Syntax

'Declaration
Public Shared Function TryGetSecurityObjectAlias ( _
    className As String, _
    <OutAttribute> ByRef aliasName As String _
) As Boolean
public static bool TryGetSecurityObjectAlias (
    string className,
    out string aliasName
)
public:
static bool TryGetSecurityObjectAlias (
    String^ className, 
    [OutAttribute] String^% aliasName
)
public static boolean TryGetSecurityObjectAlias (
    String className, 
    /** @attribute OutAttribute() */ /** @ref */ String aliasName
)

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

Reference

SmsSecurityObject Class
SmsSecurityObject Members
Microsoft.ConfigurationManagement.ManagementProvider Namespace