SPLog.GetInstance 方法 (Type)

返回属于指定类型的日志对象的一个实例。

命名空间:  Microsoft.SharePoint.Upgrade
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
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
    类型:System.Type

    System.Type对象,该对象表示的类型。

返回值

类型:Microsoft.SharePoint.Upgrade.SPLog
SPLog 对象,该对象表示的日志。

备注

GetInstance方法实现作为类别的指定类型的完整名称。

如果type参数空引用(无 在 Visual Basic 中),此方法将返回System.ArgumentNullException异常。

另请参阅

引用

SPLog 类

SPLog 成员

GetInstance 重载

Microsoft.SharePoint.Upgrade 命名空间