共用方式為


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

定義

將指定的值加入集合。

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

定義此屬性的目標物件。

propertyName
String

應在其中新增資源的集合屬性名稱。

resourceToBeAdded
Object

表示要加入之資源的不透明物件。

適用於