Condividi tramite


SPFieldLookupValue Constructor (Int32, String)

Initializes a new instance of the SPFieldLookupValue class that is based on the specified lookup identifier (ID) and value.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Sub New ( _
    lookupId As Integer, _
    lookupValue As String _
)
'Usage
Dim lookupId As Integer
Dim lookupValue As String

Dim instance As New SPFieldLookupValue(lookupId, _
    lookupValue)
public SPFieldLookupValue(
    int lookupId,
    string lookupValue
)

Parameters

  • lookupId
    Type: System.Int32

    A 32-bit integer that specifies the ID of the lookup field.

  • lookupValue
    Type: System.String

    A string that contains the value of the lookup field.

See Also

Reference

SPFieldLookupValue Class

SPFieldLookupValue Members

SPFieldLookupValue Overload

Microsoft.SharePoint Namespace