AverageRatingField Constructor (SPFieldCollection, String)
Initializes a new instance of the AverageRatingField class based on the specified field collection and field name.
Namespace: Microsoft.SharePoint.Portal.WebControls
Assembly: Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)
Syntax
'Declaration
Public Sub New ( _
fields As SPFieldCollection, _
fieldName As String _
)
'Usage
Dim fields As SPFieldCollection
Dim fieldName As String
Dim instance As New AverageRatingField(fields, _
fieldName)
public AverageRatingField(
SPFieldCollection fields,
string fieldName
)
Parameters
- fields
Type: Microsoft.SharePoint.SPFieldCollection
The field collection in which to create the average rating field.
- fieldName
Type: System.String
The name of the new field.