SPLog.WriteLogTag 方法 (UInt32, String, Exception, LogLevel)
**[WriteLog(stringmessage,LogLevellevel)]**的简写形式。将消息和异常堆栈跟踪记录为消息。
命名空间: Microsoft.SharePoint.Upgrade
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Sub WriteLogTag ( _
tagID As UInteger, _
output As String, _
exception As Exception, _
level As LogLevel _
)
用法
Dim instance As SPLog
Dim tagID As UInteger
Dim output As String
Dim exception As Exception
Dim level As LogLevel
instance.WriteLogTag(tagID, output, exception, _
level)
public void WriteLogTag(
uint tagID,
string output,
Exception exception,
LogLevel level
)
参数
tagID
类型:System.UInt32消息的的标签。
output
类型:System.String要记录的消息。
exception
类型:System.Exception将记录其堆栈跟踪的异常。
level
类型:Microsoft.SharePoint.Upgrade.LogLevel所需的日志级别。