Compartilhar via


ServerStub.GetExpandoFieldValue método

Obtenha o valor do campo expando.

A geração de código usa ClientCallableTypeAttribute(GetExpandoFieldValueMethodName = "PropName") para gerar o código para retornar o valor do campo expando. Por exemplo, para a classe de SPListItem , temos GetExpandoFieldValueMethodName = "GetFieldValue" a geração de código irá gerar código como: SPListItem value = obj as SPListItem; if (value != null) { return value.GetFieldValue(fieldName); } return null;

Namespace:  Microsoft.SharePoint.Client
Assembly:  Microsoft.SharePoint.Client.ServerRuntime (em Microsoft.SharePoint.Client.ServerRuntime.dll)

Sintaxe

'Declaração
Protected Friend Overridable Function GetExpandoFieldValue ( _
    obj As Object, _
    fieldName As String _
) As Object
'Uso
Dim obj As Object
Dim fieldName As String
Dim returnValue As Object

returnValue = Me.GetExpandoFieldValue(obj, _
    fieldName)
protected internal virtual Object GetExpandoFieldValue(
    Object obj,
    string fieldName
)

Parâmetros

Valor retornado

Tipo: System.Object

Ver também

Referência

ServerStub classe

ServerStub membros

Microsoft.SharePoint.Client namespace