ParameterDiscreteValue 类
提供属性,以便检索和设置离散值参数。
有关该类型所有成员的列表,参见 ParameterDiscreteValue 成员。
System.Object
CrystalDecisions.Shared.ParameterValue
ParameterDiscreteValue
[Visual Basic]
Public Class ParameterDiscreteValue Inherits ParameterValue Implements ICloneable
[C#]
public class ParameterDiscreteValue : ParameterValue, ICloneable
示例
该示例说明如何向 ParameterValues 集合添加离散值。此函数使用一个离散值和一个 ParameterValues 集合。它返回带有新添加值的 ParameterValues 集合。
[Visual Basic] Private Function AddDiscreteValue(ByVal paramValue As String, _ ByVal paramValues As ParameterValues) As ParameterValues Dim paramDiscreteValue As New ParameterDiscreteValue() paramDiscreteValue.Value = paramValue paramValues.Add(paramDiscreteValue) AddDiscreteValue = paramValues End Function
[C++] static ParameterValues* AddDiscreteValue (String* paramValue, ParameterValues* paramValues) { ParameterDiscreteValue* paramDiscreteValue = new ParameterDiscreteValue(); paramDiscreteValue->Value = paramValue; paramValues->Add (paramDiscreteValue); return paramValues; };
[C#] private ParameterValues AddDiscreteValue (string paramValue, ParameterValues paramValues) { ParameterDiscreteValue paramDiscreteValue = new ParameterDiscreteValue (); paramDiscreteValue.Value = paramValue; paramValues.Add (paramDiscreteValue); return paramValues; }
要求
程序集 CrystalDecisions.Shared (CrystalDecisions.Shared.dll)
请参见
ParameterDiscreteValue 成员 | CrystalDecisions.Shared 命名空间
©2005 Business Objects SA 保留所有权利。
Business Objects SA http://www.china.businessobjects.com/ 支持服务 http://www.china.businessobjects.com/ |