MetadataBuilder.AddDeclarativeSecurityAttribute(EntityHandle, DeclarativeSecurityAction, BlobHandle) Método

Definición

Agrega un atributo de seguridad declarativa a un tipo, un método o un ensamblado.Adds a declarative security attribute to a type, method, or assembly.

public:
 System::Reflection::Metadata::DeclarativeSecurityAttributeHandle AddDeclarativeSecurityAttribute(System::Reflection::Metadata::EntityHandle parent, System::Reflection::DeclarativeSecurityAction action, System::Reflection::Metadata::BlobHandle permissionSet);
public System.Reflection.Metadata.DeclarativeSecurityAttributeHandle AddDeclarativeSecurityAttribute (System.Reflection.Metadata.EntityHandle parent, System.Reflection.DeclarativeSecurityAction action, System.Reflection.Metadata.BlobHandle permissionSet);
member this.AddDeclarativeSecurityAttribute : System.Reflection.Metadata.EntityHandle * System.Reflection.DeclarativeSecurityAction * System.Reflection.Metadata.BlobHandle -> System.Reflection.Metadata.DeclarativeSecurityAttributeHandle
Public Function AddDeclarativeSecurityAttribute (parent As EntityHandle, action As DeclarativeSecurityAction, permissionSet As BlobHandle) As DeclarativeSecurityAttributeHandle

Parámetros

parent
EntityHandle

El identificador de la entidad primaria, que puede ser uno de los siguientes: TypeDefinitionHandle, MethodDefinitionHandle o AssemblyDefinitionHandle.The parent entity handle, which can be one of the following: a TypeDefinitionHandle, MethodDefinitionHandle, or a AssemblyDefinitionHandle.

action
DeclarativeSecurityAction

Una acción de seguridad declarativa.A declarative security action.

permissionSet
BlobHandle

El blob del conjunto de permisos.The permission set blob.

Devoluciones

DeclarativeSecurityAttributeHandle

Un identificador del atributo de seguridad declarativa agregado.A handle to the added declarative security attribute.

Excepciones

parent no tiene el tipo de identificador esperado.parent doesn't have the expected handle kind.

Comentarios

Las entradas se pueden agregar en cualquier orden.Entries may be added in any order. La tabla se ordena automáticamente cuando se serializa.The table is automatically sorted when serialized.

Se aplica a