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.TypeSystem.Type对象,该对象表示的类型。
返回值
类型:Microsoft.SharePoint.Upgrade.SPLog
SPLog 对象,该对象表示的日志。
备注
GetInstance方法实现作为类别的指定类型的完整名称。
如果type参数空引用(无 在 Visual Basic 中),此方法将返回System.ArgumentNullException异常。