SfcReferenceCollectionAttribute 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重要
此 API 不符合 CLS。
对可枚举目标的 (soft) 引用的属性。
[System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=true, Inherited=true)]
[System.CLSCompliant(false)]
public class SfcReferenceCollectionAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=true, Inherited=true)>]
[<System.CLSCompliant(false)>]
type SfcReferenceCollectionAttribute = class
inherit Attribute
Public Class SfcReferenceCollectionAttribute
Inherits Attribute
- 继承
-
SfcReferenceCollectionAttribute
- 属性
构造函数
| 名称 | 说明 |
|---|---|
| SfcReferenceCollectionAttribute(Type, String[]) |
通过创建具有可选键和参数的给定解析程序类型的实例来解析引用集合。 |
| SfcReferenceCollectionAttribute(Type) |
引用集合将由给定解析程序对象解析。 |
属性
| 名称 | 说明 |
|---|---|
| Arguments |
解析程序的参数。 |
| CollectionResolver |
自定义解析程序接口。 |
方法
| 名称 | 说明 |
|---|---|
| ResolveCollection(Object) |
从给定源对象解析可枚举的目标。 |
| ResolveCollection<T,S>(S) |
解析从给定源对象中可枚举的强类型目标。 |