System.Security.PermissionSet.ConvertPermissionSet Method

Converts an encoded System.Security.PermissionSet from one XML encoding format to another XML encoding format.

Syntax

public static byte[] ConvertPermissionSet (string inFormat, byte[] inData, string outFormat)

Parameters

inFormat
A string representing one of the following encoding formats: ASCII, Unicode, or Binary. Possible values are "XMLASCII" or "XML", "XMLUNICODE", and "BINARY".
inData
An XML-encoded permission set.
outFormat
A string representing one of the following encoding formats: ASCII, Unicode, or Binary. Possible values are "XMLASCII" or "XML", "XMLUNICODE", and "BINARY".

Returns

An encrypted permission set with the specified output format.

Remarks

Do not use this method.

Requirements

Namespace: System.Security
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0