Compartir a través de


del método TaxonomyField.GetFieldValueAsHtml

Returns the field value in HTML format in order to render the field valuedirectly on a page.

Espacio de nombres:  Microsoft.SharePoint.Taxonomy
Ensamblado:  Microsoft.SharePoint.Taxonomy (en Microsoft.SharePoint.Taxonomy.dll)

Sintaxis

'Declaración
Public Overrides Function GetFieldValueAsHtml ( _
    value As Object _
) As String
'Uso
Dim instance As TaxonomyField
Dim value As Object
Dim returnValue As String

returnValue = instance.GetFieldValueAsHtml(value)
public override string GetFieldValueAsHtml(
    Object value
)

Parámetros

Valor devuelto

Tipo: System.String
A string that contains the value in HTML format.

Comentarios

If the AllowMultipleValues property of the TaxonomyField object is false, the value parameter is expected to be of type TaxonomyFieldValue or SPFieldLookupValue or have an accurate string representation returned by the ToString method.

If the AllowMultipleValues property of the TaxonomyField object is true, the value parameter is expected to be of type TaxonomyFieldValueCollection or SPFieldLookupValueCollection or have an accurate string representation returned by the ToString method. The HTML returned by this method will contain each value in the collection separated by a semi-colon character.

If the value parameter is a SPFieldLookupValue object or SPFieldLookupValueCollection object, the returned string will be HTML encoded.

If the value parameter is una referencia null (Nothing en Visual Basic), an empty string is returned.

Vea también

Referencia

clase TaxonomyField

Miembros TaxonomyField

Espacio de nombres Microsoft.SharePoint.Taxonomy

GetFieldValueAsHtml(Object)

GetFieldValueAsHtml(Object)

Microsoft.SharePoint.Taxonomy

Microsoft.SharePoint