语言

SfcReferenceCollectionAttribute 类

定义

重要

此 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)

解析从给定源对象中可枚举的强类型目标。

适用于