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