다음을 통해 공유


IAttachedCollectionSourceProvider.CreateCollectionSource 메서드

정의

지정된 개체 및 관계의 경우 IAttachedCollectionSource를 만듭니다. 이 연결된 컬렉션에는 원본 항목과 관련된 지정된 관계에 대한 항목이 포함되어야 합니다.

public:
 Microsoft::VisualStudio::Shell::IAttachedCollectionSource ^ CreateCollectionSource(System::Object ^ item, System::String ^ relationshipName);
public:
 Microsoft::VisualStudio::Shell::IAttachedCollectionSource ^ CreateCollectionSource(Platform::Object ^ item, Platform::String ^ relationshipName);
Microsoft::VisualStudio::Shell::IAttachedCollectionSource CreateCollectionSource(winrt::Windows::Foundation::IInspectable const & item, std::wstring const & relationshipName);
public Microsoft.VisualStudio.Shell.IAttachedCollectionSource CreateCollectionSource (object item, string relationshipName);
abstract member CreateCollectionSource : obj * string -> Microsoft.VisualStudio.Shell.IAttachedCollectionSource
Public Function CreateCollectionSource (item As Object, relationshipName As String) As IAttachedCollectionSource

매개 변수

item
Object

컬렉션을 만들어야 하는 원본 항목입니다.

relationshipName
String

컬렉션을 만들어야 하는 관계의 이름입니다.

반환

새 연결된 컬렉션 원본 또는 이 공급자가 이 개체에 대한 컬렉션 만들기를 지원하지 않는 경우 null입니다.

적용 대상