Udostępnij za pośrednictwem


CustomPropertyCollection.Add Method (String, Object)

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

Namespace: Microsoft.ReportingServices.ReportRendering
Assembly: Microsoft.ReportingServices.ProcessingCore (in microsoft.reportingservices.processingcore.dll)

Syntax

'Declaration
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
)

Parameters

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

Remarks

New:5 December 2005

Thread Safety

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.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

See Also

Reference

CustomPropertyCollection Class
CustomPropertyCollection Members
Microsoft.ReportingServices.ReportRendering Namespace