Skip to content

Latest commit

 

History

History
72 lines (59 loc) · 3.05 KB

nf-azroles-iazclientcontext-getroles.md

File metadata and controls

72 lines (59 loc) · 3.05 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:azroles.IAzClientContext.GetRoles
IAzClientContext::GetRoles (azroles.h)
Returns the roles for the client context.
AzClientContext object [Security]
GetRoles method
GetRoles
GetRoles method [Security]
GetRoles method [Security]
AzClientContext object
GetRoles method [Security]
IAzClientContext interface
IAzClientContext interface [Security]
GetRoles method
IAzClientContext.GetRoles
IAzClientContext::GetRoles
azroles/IAzClientContext::GetRoles
security.iazclientcontext_getroles
security\iazclientcontext_getroles.htm
security
753506cc-ed44-4795-90e5-c76010181d8a
12/05/2018
AzClientContext object [Security],GetRoles method, GetRoles, GetRoles method [Security], GetRoles method [Security],AzClientContext object, GetRoles method [Security],IAzClientContext interface, IAzClientContext interface [Security],GetRoles method, IAzClientContext.GetRoles, IAzClientContext::GetRoles, azroles/IAzClientContext::GetRoles, security.iazclientcontext_getroles
azroles.h
Windows
Windows Vista [desktop apps only]
Windows Server 2003 [desktop apps only]
Azroles.lib
Azroles.dll
Windows
Windows Server 2003 Administration Tools Pack on Windows XP
19H1
IAzClientContext::GetRoles
azroles/IAzClientContext::GetRoles
c++
APIRef
kbSyntax
COM
Azroles.dll
IAzClientContext.GetRoles
AzClientContext.GetRoles

IAzClientContext::GetRoles

-description

The GetRoles method returns the roles for the client context.

-parameters

-param bstrScopeName [in, optional]

Name of the IAzScope object from which the roles returned in the pvarRoleNames parameter are applicable. If this property is NULL, the roles from the application scope are returned; otherwise, the roles from the specified scope are returned instead of the roles from the application scope.

-param pvarRoleNames [out]

A pointer to a VARIANT used to return a SAFEARRAY. Each element of the SAFEARRAY is a VARIANT of type BSTR that contains the name of a role to which the client belongs at the scope specified by the bstrScopeName parameter.

-returns

The return value is an HRESULT. A value of S_OK indicates success. Any other value indicates that the operation failed.

-remarks

In JScript, the returned SAFEARRAY must be converted to the JScript Array object.