CustomPropertyCollection.Add 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为集合添加自定义属性。
重载
| 名称 | 说明 |
|---|---|
| Add(CustomProperty) |
为集合添加自定义属性。 |
| Add(String, Object) |
创建一个带有名称和值的自定义属性,并将其添加到集合中。 |
Add(CustomProperty)
为集合添加自定义属性。
public:
void Add(Microsoft::ReportingServices::ReportRendering::CustomProperty ^ property);
public void Add(Microsoft.ReportingServices.ReportRendering.CustomProperty property);
member this.Add : Microsoft.ReportingServices.ReportRendering.CustomProperty -> unit
Public Sub Add (property As CustomProperty)
参数
- property
- CustomProperty
CustomProperty要添加到集合的对象。
适用于
Add(String, Object)
创建一个带有名称和值的自定义属性,并将其添加到集合中。
public:
void Add(System::String ^ propertyName, System::Object ^ propertyValue);
public void Add(string propertyName, object propertyValue);
member this.Add : string * obj -> unit
Public Sub Add (propertyName As String, propertyValue As Object)
参数
- propertyName
- String
自定义属性的名称。
- propertyValue
- Object
自定义属性的值。