Share via


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)

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