SPField.GetFieldValueAsHtml method
取得以 HTML 格式的欄位值,以呈現直接在頁面上的欄位值。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Overridable Function GetFieldValueAsHtml ( _
value As Object _
) As String
'用途
Dim instance As SPField
Dim value As Object
Dim returnValue As String
returnValue = instance.GetFieldValueAsHtml(value)
public virtual string GetFieldValueAsHtml(
Object value
)
參數
value
Type: System.Object要轉換的值。
傳回值
Type: System.String
HTML 格式中的值。
備註
使用此方法的版本歷程記錄和其他 managed 程式碼轉譯。請勿使用此方法中顯示表單、 使用Collaborative Application Markup Language (CAML)欄位轉譯的清單檢視中的欄位轉譯與共用常見的邏輯。