SPFieldUserValue Constructor (SPWeb, String)
Initializes a new instance of the SPFieldUserValue class based on the specified Web site and field 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, _
fieldValue As String _
)
'Usage
Dim web As SPWeb
Dim fieldValue As String
Dim instance As New SPFieldUserValue(web, fieldValue)
public SPFieldUserValue(
SPWeb web,
string fieldValue
)
Parameters
web
Type: Microsoft.SharePoint.SPWebThe Web site in which to create the field.
fieldValue
Type: System.StringThe value of the user field.