PermissionSet.ConvertPermissionSet Method (String, Byte[], String)

 
Note: This API is now obsolete.

This API supports the product infrastructure and is not intended to be used directly from your code.

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

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

[ObsoleteAttribute("This method is obsolete and shoud no longer be used.")]
public static byte[] ConvertPermissionSet(
	string inFormat,
	byte[] inData,
	string outFormat
)

Parameters

inFormat
Type: System.String

A string representing one of the following encoding formats: ASCII, Unicode, or Binary. Possible values are "XMLASCII" or "XML", "XMLUNICODE", and "BINARY".

inData
Type: System.Byte[]

An XML-encoded permission set.

outFormat
Type: System.String

A string representing one of the following encoding formats: ASCII, Unicode, or Binary. Possible values are "XMLASCII" or "XML", "XMLUNICODE", and "BINARY".

Return Value

Type: System.Byte[]

An encrypted permission set with the specified output format.

Exception Condition
NotImplementedException

In all cases.

Do not use this method.

.NET Framework
Available since 1.1
Return to top
Show: