SPLog.GetInstance method (Type)
傳回屬於指定類型的記錄檔物件的執行個體。
Namespace: Microsoft.SharePoint.Upgrade
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Shared Function GetInstance ( _
type As Type _
) As SPLog
'用途
Dim type As Type
Dim returnValue As SPLog
returnValue = SPLog.GetInstance(type)
public static SPLog GetInstance(
Type type
)
參數
type
Type: System.TypeSystem.Type物件,代表類型。
傳回值
Type: Microsoft.SharePoint.Upgrade.SPLog
表示記錄檔的SPLog物件。
備註
GetInstance方法會實作類別指定類型的完整名稱。
如果type參數包含a null reference (Nothing in Visual Basic),這個方法會傳回System.ArgumentNullException例外狀況。