IMetaDataEmit::DefineSecurityAttributeSet Method

Creates a set of security permissions to attach to the object referenced by the specified token.

HRESULT DefineSecurityAttributeSet ( 
    [in]  mdToken       tkObj, 
    [in]  COR_SECATTR   rSecAttrs[], 
    [in]  ULONG         cSecAttrs, 
    [out] ULONG         *pulErrorAttr 
);

Parameters

  • tkObj
    [in] The token to which the security information is attached.

  • rSecAttrs
    [in] An array of COR_SECATTR structures.

  • cSecAttrs
    [in] The number of elements in rSecAttrs.

  • pulErrorAttr
    [out] If the method fails, specifies the index in rSecAttrs of the element that caused the problem.

Requirements

Platforms: See .NET Framework System Requirements.

Header: Cor.h

Library: Used as a resource in MSCorEE.dll

.NET Framework Versions: 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0, 1.1, 1.0

See Also

Reference

IMetaDataEmit Interface

IMetaDataEmit2 Interface