File Property
Collapse the table of content
Expand the table of content

PermissionSetAttribute.File Property

 

Gets or sets a file containing the XML representation of a custom permission set to be declared.

Namespace:   System.Security.Permissions
Assembly:  mscorlib (in mscorlib.dll)

public string File { get; set; }

Property Value

Type: System.String

The physical path to the file containing the XML representation of the permission set.

If the file specified is Unicode, set the UnicodeEncoded property to true.

The following code shows the use of the File property. This code example is part of a larger example provided for the PermissionSetAttribute class.

[PermissionSetAttribute(SecurityAction.PermitOnly, File = "c:\\temp\\LocalIntranet.xml")]

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft