다음을 통해 공유


SPFieldRatingScaleValue.Add Method

Adds a value to a specified subordinate question in the survey rating scale.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Sub Add ( _
    choiceValue As String, _
    choiceNumber As Integer _
)
'Usage
Dim instance As SPFieldRatingScaleValue
Dim choiceValue As String
Dim choiceNumber As Integer

instance.Add(choiceValue, choiceNumber)
public void Add(
    string choiceValue,
    int choiceNumber
)

Parameters

  • choiceValue
    Type: System.String

    A string that specifies the subordinate question for which a value is being added.

Remarks

This method adds the value specified by the choiceNumber parameter to the subordinate question specified by the choiceValue parameter in the format as “choiceValue;#choiceNumber” in the survey rating scale.

See Also

Reference

SPFieldRatingScaleValue Class

SPFieldRatingScaleValue Members

Microsoft.SharePoint Namespace