Setting.AddValidValue 方法 (String, String)

Adds a valid value for a setting using a label and a value.

命名空间:  Microsoft.ReportingServices.Interfaces
程序集:   Microsoft.ReportingServices.Interfaces(在 Microsoft.ReportingServices.Interfaces.dll 中)
  Microsoft.ReportingServices.SharePoint.UI.WebParts(在 Microsoft.ReportingServices.SharePoint.UI.WebParts.dll 中)

语法

声明
Public Sub AddValidValue ( _
    label As String, _
    val As String _
)
用法
Dim instance As Setting
Dim label As String
Dim val As String

instance.AddValidValue(label, val)
public void AddValidValue(
    string label,
    string val
)
public:
void AddValidValue(
    String^ label, 
    String^ val
)
member AddValidValue : 
        label:string * 
        val:string -> unit 
public function AddValidValue(
    label : String, 
    val : String
)

参数

  • label
    类型:System.String
    The display value for the setting as presented in a user interface.
  • val
    类型:System.String
    The actual value of the setting that is passed to the delivery extension.

注释

The label parameter of a setting can be used to support localized names of setting values. The label is displayed in a user interface, such as Report Manager.