IUpdatable.AddReferenceToCollection 方法
将指定值添加到集合。
命名空间: System.Data.Services
程序集: Microsoft.Data.Services(在 Microsoft.Data.Services.dll 中)
语法
声明
Sub AddReferenceToCollection ( _
targetResource As Object, _
propertyName As String, _
resourceToBeAdded As Object _
)
用法
Dim instance As IUpdatable
Dim targetResource As Object
Dim propertyName As String
Dim resourceToBeAdded As Object
instance.AddReferenceToCollection(targetResource, _
propertyName, resourceToBeAdded)
void AddReferenceToCollection(
Object targetResource,
string propertyName,
Object resourceToBeAdded
)
void AddReferenceToCollection(
Object^ targetResource,
String^ propertyName,
Object^ resourceToBeAdded
)
abstract AddReferenceToCollection :
targetResource:Object *
propertyName:string *
resourceToBeAdded:Object -> unit
function AddReferenceToCollection(
targetResource : Object,
propertyName : String,
resourceToBeAdded : Object
)
参数
- targetResource
类型:System.Object
定义属性的目标对象。
- propertyName
类型:System.String
应对其添加资源的集合属性的名称。
- resourceToBeAdded
类型:System.Object
表示要添加资源的不透明对象。