共用方式為


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.Type

    System.Type物件,代表類型。

傳回值

Type: Microsoft.SharePoint.Upgrade.SPLog
表示記錄檔的SPLog物件。

備註

GetInstance方法會實作格式full_name_of_type:name_of_method類別。

如果任一參數包含a null reference (Nothing in Visual Basic),這個方法會傳回System.ArgumentNullException例外狀況。

請參閱

參照

SPLog class

SPLog members

GetInstance overload

Microsoft.SharePoint.Upgrade namespace