Share via


IMetaDataEmit::DefinePermissionSet Method

Creates a definition for a permission set with the specified metadata signature, and gets a token to that permission set definition.

HRESULT DefinePermissionSet (
    [in]  mdToken        tk, 
    [in]  DWORD          dwAction, 
    [in]  void const     *pvPermission, 
    [in]  ULONG          cbPermission, 
    [out] mdPermission   *ppm 
);

Parameters

Parameter Description

tk

[in] The object to be decorated.

dwAction

[in] A CorDeclSecurity Enumeration value that specifies the type of declarative security to be used.

pvPermission

[in] The permission BLOB.

cbPermission

[in] The size, in bytes, of pvPermission.

ppm

[out] The returned permission token.

Requirements

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: Cor.h

Library: Used as a resource in Mscoree.dll

.NET Framework Version: 2.0, 1.1, 1.0

See Also

Reference

IMetaDataEmit Interface
IMetaDataEmit2 Interface