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
web
Type: Microsoft.SharePoint.SPWebThe Web site in which to create the field.
lookupId
Type: System.Int32A 32-bit integer that specifies the ID of the user field.
lookupValue
Type: System.StringThe value of the user field.