JAMS Developer Guide
HasAccess Method (IAccessToolsWCF)


MVPSI.JAMS Namespace > IAccessToolsWCF Interface : HasAccess Method
Checks access to an object and returns false if access is denied.
Syntax
'Declaration
 
<System.ServiceModel.OperationContractAttribute()>
<System.ServiceModel.FaultContractAttribute(DetailType=MVPSI.JAMS.JAMSException, 
   Action="", 
   Name="", 
   Namespace="", 
   ProtectionLevel=ProtectionLevel.None, 
   HasProtectionLevel=False)>
Function HasAccess( _
   ByVal objType As AccessObject, _
   ByVal accessDesired As ObjectAccess _
) As System.Threading.Tasks.Task(Of Boolean)
'Usage
 
Dim instance As IAccessToolsWCF
Dim objType As AccessObject
Dim accessDesired As ObjectAccess
Dim value As System.Threading.Tasks.Task(Of Boolean)
 
value = instance.HasAccess(objType, accessDesired)
[System.ServiceModel.OperationContract()]
[System.ServiceModel.FaultContract(DetailType=MVPSI.JAMS.JAMSException, 
   Action="", 
   Name="", 
   Namespace="", 
   ProtectionLevel=ProtectionLevel.None, 
   HasProtectionLevel=false)]
System.Threading.Tasks.Task<bool> HasAccess( 
   AccessObject objType,
   ObjectAccess accessDesired
)

Parameters

objType
accessDesired
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