CustomPropertyCollection.Add Method (String, Object)

Creates a custom property with a name and value and adds it to the collection.

命名空间: Microsoft.ReportingServices.ReportRendering
程序集: Microsoft.ReportingServices.ProcessingCore (in microsoft.reportingservices.processingcore.dll)

语法

声明
Public Sub Add ( _
    propertyName As String, _
    propertyValue As Object _
)
public void Add (
    string propertyName,
    Object propertyValue
)
public:
void Add (
    String^ propertyName, 
    Object^ propertyValue
)
public void Add (
    String propertyName, 
    Object propertyValue
)
public function Add (
    propertyName : String, 
    propertyValue : Object
)

参数

  • propertyName
    The name of the custom property.
  • propertyValue
    The value of the custom property.

备注

新增日期:2005 年 12 月 5 日

线程安全

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

平台

开发平台

有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。

目标平台

有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。

请参阅

参考

CustomPropertyCollection Class
CustomPropertyCollection Members
Microsoft.ReportingServices.ReportRendering Namespace