IUpdatable.AddReferenceToCollection(Object, String, Object) 方法

定义

将指定值添加到集合。Adds the specified value to the collection.

public:
 void AddReferenceToCollection(System::Object ^ targetResource, System::String ^ propertyName, System::Object ^ resourceToBeAdded);
public void AddReferenceToCollection (object targetResource, string propertyName, object resourceToBeAdded);
abstract member AddReferenceToCollection : obj * string * obj -> unit
Public Sub AddReferenceToCollection (targetResource As Object, propertyName As String, resourceToBeAdded As Object)

参数

targetResource
Object

用于定义属性的目标对象。Target object that defines the property.

propertyName
String

应向其中添加资源的集合属性的名称。The name of the collection property to which the resource should be added.

resourceToBeAdded
Object

表示要添加的资源的不透明对象。The opaque object representing the resource to be added.

适用于