JAMS 6.x Help
HasAccess Method (IAccessTools)


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.Boolean
'Usage
 
Dim instance As IAccessTools
Dim objType As AccessObject
Dim accessDesired As ObjectAccess
Dim value As System.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.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

IAccessTools Interface
IAccessTools Members