SPGlobalAdmin.IsCurrentUserMachineAdmin method
NOTE: This API is now obsolete.
已過時。在Windows SharePoint Services 2.0, IsCurrentUserGlobalAdmin 方法會傳回 Boolean 值,指出目前的使用者是否執行SharePoint Foundation,電腦的本機管理員群組的成員,且維護回溯相容性。
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
<ObsoleteAttribute("Most of the functionality in this class is available in SPFarm or SPWebService.", _
False)> _
Public Function IsCurrentUserMachineAdmin As Boolean
'用途
Dim instance As SPGlobalAdmin
Dim returnValue As Boolean
returnValue = instance.IsCurrentUserMachineAdmin()
[ObsoleteAttribute("Most of the functionality in this class is available in SPFarm or SPWebService.",
false)]
public bool IsCurrentUserMachineAdmin()
傳回值
Type: System.Boolean
true如果目前的使用者是本機管理員群組的成員 ;否則,請false。