Skip to content

Latest commit

 

History

History
149 lines (124 loc) · 5.58 KB

nf-azroles-iazapplication-addpropertyitem.md

File metadata and controls

149 lines (124 loc) · 5.58 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.IAzApplication.AddPropertyItem
IAzApplication::AddPropertyItem (azroles.h)
Adds the specified principal to the specified list of principals. (IAzApplication.AddPropertyItem)
AZ_PROP_DELEGATED_POLICY_USERS
AZ_PROP_DELEGATED_POLICY_USERS_NAME
AZ_PROP_POLICY_ADMINS
AZ_PROP_POLICY_ADMINS_NAME
AZ_PROP_POLICY_READERS
AZ_PROP_POLICY_READERS_NAME
AddPropertyItem
AddPropertyItem method [Security]
AddPropertyItem method [Security]
AzApplication object
AddPropertyItem method [Security]
IAzApplication interface
AzApplication object [Security]
AddPropertyItem method
IAzApplication interface [Security]
AddPropertyItem method
IAzApplication.AddPropertyItem
IAzApplication::AddPropertyItem
azroles/IAzApplication::AddPropertyItem
security.iazapplication_addpropertyitem
security\iazapplication_addpropertyitem.htm
security
183fcf59-94c1-4359-b3de-285ff6b085a6
12/05/2018
AZ_PROP_DELEGATED_POLICY_USERS, AZ_PROP_DELEGATED_POLICY_USERS_NAME, AZ_PROP_POLICY_ADMINS, AZ_PROP_POLICY_ADMINS_NAME, AZ_PROP_POLICY_READERS, AZ_PROP_POLICY_READERS_NAME, AddPropertyItem, AddPropertyItem method [Security], AddPropertyItem method [Security],AzApplication object, AddPropertyItem method [Security],IAzApplication interface, AzApplication object [Security],AddPropertyItem method, IAzApplication interface [Security],AddPropertyItem method, IAzApplication.AddPropertyItem, IAzApplication::AddPropertyItem, azroles/IAzApplication::AddPropertyItem, security.iazapplication_addpropertyitem
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
IAzApplication::AddPropertyItem
azroles/IAzApplication::AddPropertyItem
c++
APIRef
kbSyntax
COM
Azroles.dll
IAzApplication.AddPropertyItem
AzApplication.AddPropertyItem

IAzApplication::AddPropertyItem

-description

The AddPropertyItem method adds the specified principal to the specified list of principals.

-parameters

-param lPropId [in]

Property ID of the list of principals to which to add the principal specified by the varProp parameter. The following table shows the possible values.

Value Meaning
AZ_PROP_POLICY_ADMINS
Can also be added using the AddPolicyAdministrator method
AZ_PROP_POLICY_ADMINS_NAME
Can also be added using the AddPolicyAdministratorName method
AZ_PROP_POLICY_READERS
Can also be added using the AddPolicyReader method
AZ_PROP_POLICY_READERS_NAME
Can also be added using the AddPolicyReaderName method
AZ_PROP_DELEGATED_POLICY_USERS
Can also be added using the AddDelegatedPolicyUser method
AZ_PROP_DELEGATED_POLICY_USERS_NAME
Can also be added using the AddDelegatedPolicyUserName method

-param varProp [in]

Principal to add to the list of principals specified by the lPropId parameter.

The variant must be a BSTR variant.

If AZ_PROP_POLICY_ADMINS_NAME, AZ_PROP_POLICY_READERS_NAME, or AZ_PROP_DELEGATED_POLICY_USERS_NAME is specified for the lPropId parameter, the string is the account name of the account to add to the list. The account name must be in user principal name (UPN) format (for example, "someone@example.com").

-param varReserved [in, optional]

Reserved for future use.

-returns

If the method succeeds, the method returns S_OK.

Any other HRESULT value indicates that the operation failed.

-remarks

You must call the Submit method to persist any changes made by this method.