JAMS Developer Guide
EncodeACL Method


MVPSI.JAMS Namespace > IAccessToolsWCF Interface : EncodeACL Method
The type of object the ACL is attached to.
The ACL to encode.
Encode a GenericACL into an array of bytes.
Syntax
'Declaration
 
<System.ServiceModel.OperationContractAttribute()>
<System.ServiceModel.FaultContractAttribute(DetailType=MVPSI.JAMS.JAMSException, 
   Action="", 
   Name="", 
   Namespace="", 
   ProtectionLevel=ProtectionLevel.None, 
   HasProtectionLevel=False)>
Function EncodeACL( _
   ByVal objType As ObjectAccessType, _
   ByVal acl As GenericACL _
) As System.Threading.Tasks.Task(Of Byte())
'Usage
 
Dim instance As IAccessToolsWCF
Dim objType As ObjectAccessType
Dim acl As GenericACL
Dim value As System.Threading.Tasks.Task(Of Byte())
 
value = instance.EncodeACL(objType, acl)
[System.ServiceModel.OperationContract()]
[System.ServiceModel.FaultContract(DetailType=MVPSI.JAMS.JAMSException, 
   Action="", 
   Name="", 
   Namespace="", 
   ProtectionLevel=ProtectionLevel.None, 
   HasProtectionLevel=false)]
System.Threading.Tasks.Task<byte[]> EncodeACL( 
   ObjectAccessType objType,
   GenericACL acl
)

Parameters

objType
The type of object the ACL is attached to.
acl
The ACL to encode.

Return Value

An array of bytes
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IAccessToolsWCF Interface
IAccessToolsWCF Members