PeerCollaborationPermission Classe
Definição
Cuidado
Code Access Security is not supported or honored by the runtime.
Especifica os valores que definem ou são usados nas permissões de objeto System.Net.PeerToPeer.Collaboration.Specifies the values that define or are used in System.Net.PeerToPeer.Collaboration object permissions.
public ref class PeerCollaborationPermission sealed : System::Security::CodeAccessPermission, System::Security::Permissions::IUnrestrictedPermission
public sealed class PeerCollaborationPermission : System.Security.CodeAccessPermission, System.Security.Permissions.IUnrestrictedPermission
[System.Obsolete("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public sealed class PeerCollaborationPermission : System.Security.CodeAccessPermission, System.Security.Permissions.IUnrestrictedPermission
[System.Serializable]
public sealed class PeerCollaborationPermission : System.Security.CodeAccessPermission, System.Security.Permissions.IUnrestrictedPermission
type PeerCollaborationPermission = class
inherit CodeAccessPermission
interface IUnrestrictedPermission
[<System.Obsolete("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
type PeerCollaborationPermission = class
inherit CodeAccessPermission
interface IUnrestrictedPermission
[<System.Serializable>]
type PeerCollaborationPermission = class
inherit CodeAccessPermission
interface IUnrestrictedPermission
Public NotInheritable Class PeerCollaborationPermission
Inherits CodeAccessPermission
Implements IUnrestrictedPermission
- Herança
- Atributos
- Implementações
Comentários
O padrão System.Security.Permissions permite que todos os aplicativos locais e da zona da intranet acessem os serviços de colaboração e nenhuma permissão é concedida para aplicativos de zona da Internet.The default System.Security.Permissions allow all local and Intranet zone applications to access collaboration services, and no permission is granted for Internet zone applications. Em outras palavras, se as permissões padrão não forem alteradas, todos os aplicativos de link local e locais de site terão acesso aos serviços de colaboração ponto a ponto, mas os aplicativos globais não têm acesso.In other words, if the default permissions are not changed, all link-local and site-local applications have access to Peer-To-Peer collaboration services, but global applications have no access.
Essa classe não é derivada.This class is not derivable.
Construtores
| PeerCollaborationPermission(PermissionState) |
Inicializa uma nova instância do PeerCollaborationPermission.Initializes a new instance of the PeerCollaborationPermission. O PermissionState inicial dessa instância é passado quando o construtor é chamado.The initial PermissionState for this instance is passed when the constructor is called. |
Métodos
| Assert() |
Declara que o código de chamada pode acessar o recurso protegido por uma demanda de permissão através do código que chama este método, mesmo que os chamadores na pilha não tenham recebido permissão para acessar o recurso.Declares that the calling code can access the resource protected by a permission demand through the code that calls this method, even if callers higher in the stack have not been granted permission to access the resource. Usar Assert() pode criar problemas de segurança.Using Assert() can create security issues. (Herdado de CodeAccessPermission) |
| Copy() |
Cria e retorna uma cópia do PeerCollaborationPermission atual.Creates and returns a copy of the current PeerCollaborationPermission. |
| Demand() |
Força um SecurityException no tempo de execução se todos os chamadores no topo da pilha de chamadas não receberam as permissões especificadas pela instância atual.Forces a SecurityException at run time if all callers higher in the call stack have not been granted the permission specified by the current instance. (Herdado de CodeAccessPermission) |
| Deny() |
Obsoleto.
Obsoleto.
Impede que os chamadores no nível superior da pilha de chamadas usem o código que chama esse método para acessar o recurso especificado pela instância atual.Prevents callers higher in the call stack from using the code that calls this method to access the resource specified by the current instance. (Herdado de CodeAccessPermission) |
| Equals(Object) |
Determina se o objeto CodeAccessPermission especificado é igual ao CodeAccessPermission atual.Determines whether the specified CodeAccessPermission object is equal to the current CodeAccessPermission. (Herdado de CodeAccessPermission) |
| FromXml(SecurityElement) |
Representa o modelo de objeto XML para codificação de objetos de segurança.Represents the XML object model for encoding security objects. |
| GetHashCode() |
Obtém um código hash para o objeto CodeAccessPermission atual, adequado para algoritmos de hash e estruturas de dados, tais como uma tabela de hash.Gets a hash code for the CodeAccessPermission object that is suitable for use in hashing algorithms and data structures such as a hash table. (Herdado de CodeAccessPermission) |
| GetType() |
Obtém o Type da instância atual.Gets the Type of the current instance. (Herdado de Object) |
| Intersect(IPermission) |
Cria e retorna uma permissão que é a interseção do PeerCollaborationPermission atual e da permissão |
| IsSubsetOf(IPermission) |
Determina se o PeerCollaborationPermission atual é um subconjunto da permissão |
| IsUnrestricted() |
Retorna um valor que especifica se o PeerCollaborationPermission atual é irrestrito.Returns a value specifying whether the current PeerCollaborationPermission is unrestricted. |
| MemberwiseClone() |
Cria uma cópia superficial do Object atual.Creates a shallow copy of the current Object. (Herdado de Object) |
| PermitOnly() |
Impede que os chamadores no topo da pilha de chamadas usem o código que chama esse método para acessar todos os recursos, com exceção do recurso especificado pela instância atual.Prevents callers higher in the call stack from using the code that calls this method to access all resources except for the resource specified by the current instance. (Herdado de CodeAccessPermission) |
| ToString() |
Cria e retorna uma representação de cadeia de caracteres do objeto de permissão atual.Creates and returns a string representation of the current permission object. (Herdado de CodeAccessPermission) |
| ToXml() |
Cria uma codificação XML do PeerCollaborationPermission e seu estado atual.Creates an XML encoding of the PeerCollaborationPermission and its current state. |
| Union(IPermission) |
Cria uma permissão que é a união entre o PeerCollaborationPermission atual e a permissão |
Implantações explícitas de interface
| IPermission.Demand() |
Gera um SecurityException em tempo de execução se o requisito de segurança não é atendido.Throws a SecurityException at run time if the security requirement is not met. (Herdado de CodeAccessPermission) |
| IStackWalk.Assert() |
Declara que código de chamada pode acessar o recurso identificado pelo objeto de permissão atual, mesmo que os chamadores na pilha não tenham recebido permissão para acessar o recurso.Asserts that the calling code can access the resource identified by the current permission object, even if callers higher in the stack have not been granted permission to access the resource. (Herdado de CodeAccessPermission) |
| IStackWalk.Demand() |
Determina em tempo de execução se a permissão especificada pelo objeto de permissão atual foi ou não concedida a todos os chamadores na pilha de chamadas.Determines at run time whether all callers in the call stack have been granted the permission specified by the current permission object. (Herdado de CodeAccessPermission) |
| IStackWalk.Deny() |
Faz com que cada Demand() para o objeto atual que passa pelo código de chamada falhe.Causes every Demand() for the current object that passes through the calling code to fail. (Herdado de CodeAccessPermission) |
| IStackWalk.PermitOnly() |
Causa a falha de cada Demand() de todos os objetos que passam pelo código de chamada, exceto o atual, mesmo que o código superior na pilha de chamadas tenha recebido permissão para acessar outros recursos.Causes every Demand() for all objects except the current one that pass through the calling code to fail, even if code higher in the call stack has been granted permission to access other resources. (Herdado de CodeAccessPermission) |