Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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 


[in] The object to be decorated.


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


[in] The permission BLOB.


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


[out] The returned permission token.

Platforms: See .NET Framework System Requirements.

Header: Cor.h

Library: Used as a resource in MSCorEE.dll

.NET Framework Versions: 4.6 RC, 4.5.2, 4.5.1, 4.5, 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0, 1.1, 1.0

© 2015 Microsoft