Condividi tramite


SPFieldUserValue Constructor (SPWeb, Int32, String)

Initializes a new instance of the SPFieldUserValue class based on the specified Web site, lookup ID, and lookup 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 ( _
    web As SPWeb, _
    lookupId As Integer, _
    lookupValue As String _
)
'Usage
Dim web As SPWeb
Dim lookupId As Integer
Dim lookupValue As String

Dim instance As New SPFieldUserValue(web, lookupId, _
    lookupValue)
public SPFieldUserValue(
    SPWeb web,
    int lookupId,
    string lookupValue
)

Parameters

  • lookupId
    Type: System.Int32

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

See Also

Reference

SPFieldUserValue Class

SPFieldUserValue Members

SPFieldUserValue Overload

Microsoft.SharePoint Namespace