SfcReferenceCollectionAttribute 類別

定義

重要

此 API 不符合 CLS 規範。

屬性用於可枚舉目標的(軟)參考。

[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
屬性

建構函式

名稱 Description
SfcReferenceCollectionAttribute(Type, String[])

參考集合將透過建立指定解析器類型的實例,並使用可選的鍵與參數來解析。

SfcReferenceCollectionAttribute(Type)

參考集合將由給定的解析器物件解析。

屬性

名稱 Description
Arguments

支持解決器的論點。

CollectionResolver

自訂解析器介面。

方法

名稱 Description
ResolveCollection(Object)

解析一個可從給定來源物件枚舉的目標。

ResolveCollection<T,S>(S)

解析一個強型別的目標,可從給定的來源物件枚舉。

適用於