FileIOPermissionAttribute.All Propriété

Définition

Attention

Cette API est à présent déconseillée.

Attention

Please use the ViewAndModify property instead.

Attention

use newer properties

Obtient ou définit l'accès complet pour le fichier ou le répertoire spécifié par la valeur de chaîne.

public:
 property System::String ^ All { System::String ^ get(); void set(System::String ^ value); };
[System.Obsolete]
public string All { get; set; }
public string All { get; set; }
[System.Obsolete("Please use the ViewAndModify property instead.")]
public string All { get; set; }
[System.Obsolete("use newer properties")]
public string All { get; set; }
[<System.Obsolete>]
member this.All : string with get, set
member this.All : string with get, set
[<System.Obsolete("Please use the ViewAndModify property instead.")>]
member this.All : string with get, set
[<System.Obsolete("use newer properties")>]
member this.All : string with get, set
Public Property All As String

Valeur de propriété

String

Chemin d'accès absolu du fichier ou du répertoire en accès complet.

Attributs

Exceptions

La méthode get n'est pas prise en charge pour cette propriété.

Exemples

L’exemple de code suivant définit la All propriété pour accorder un accès complet au répertoire spécifié.

// Set the All property.
[FileIOPermissionAttribute(SecurityAction::PermitOnly,
All="C:\\Documents and Settings\\All Users\\Application Data\\Microsoft\\Network")]
// Set the All property.
[FileIOPermissionAttribute(SecurityAction.PermitOnly,
     All = "C:\\Documents and Settings\\All Users\\Application Data\\Microsoft\\Network")]
' Set the Read, PathDiscovery, Append, Write, and All properties.
<FileIOPermissionAttribute(SecurityAction.PermitOnly, Read:="C:\"), _
FileIOPermissionAttribute(SecurityAction.PermitOnly, _
PathDiscovery:="C:\Documents and Settings\All Users"), _
FileIOPermissionAttribute(SecurityAction.PermitOnly, _
Append:="C:\Documents and Settings\All Users\Application Data"), _
FileIOPermissionAttribute(SecurityAction.PermitOnly, _
    Write:="C:\Documents and Settings\All Users\Application Data\Microsoft"), _
FileIOPermissionAttribute(SecurityAction.PermitOnly, _
    All:="C:\Documents and Settings\All Users\Application Data\Microsoft\Network")> _
Public Shared Sub PermitOnlyMethod()

Remarques

Cette propriété définit l’accès pour un seul fichier ou répertoire. Utilisez des attributs supplémentaires pour spécifier des fichiers et des répertoires supplémentaires.

S’applique à