SharepointListQueryConnection 클래스

참고: 이 API는 이제 사용되지 않습니다.

SharePoint 목록 또는 문서 라이브러리에서 데이터를 검색하는 데 사용할 데이터 연결을 나타냅니다.

상속 계층 구조

System.Object
  Microsoft.Office.InfoPath.DataConnection
    Microsoft.Office.InfoPath.SharepointListQueryConnection

네임스페이스:  Microsoft.Office.InfoPath
어셈블리:  Microsoft.Office.InfoPath(Microsoft.Office.InfoPath.dll)

구문

‘선언
<ObsoleteAttribute("The SharePointListQueryConnection class has been deprecated. Use SharePointListRWQueryConnection instead.")> _
Public MustInherit Class SharepointListQueryConnection _
    Inherits DataConnection
‘사용 방법
Dim instance As SharepointListQueryConnection
[ObsoleteAttribute("The SharePointListQueryConnection class has been deprecated. Use SharePointListRWQueryConnection instead.")]
public abstract class SharepointListQueryConnection : DataConnection

주의

중요

SharepointListQueryConnection 클래스 및 해당 멤버는 Microsoft InfoPath 2010에서 더 이상 사용되지 않습니다. 이 클래스의 멤버를 사용하여 작성한 코드는 InfoPath 2003 또는 InfoPath 2007에서 만든 SharePoint 문서 라이브러리에 대한 데이터 연결, InfoPath 2007 양식 서식 파일 중 하나를 사용하여 InfoPath 2010에서 만든 새 양식 서식 파일의 데이터 연결 또는 데이터 연결 대화 상자에서 이전 버전으로 변환 단추를 사용하여 변환한 데이터 연결과만 호환됩니다. InfoPath 2010 양식 서식 파일에서 만든 SharePoint 문서 라이브러리에 대한 데이터 연결을 사용하는 코드를 작성하려면 SharePointListRWQueryConnection 클래스의 멤버를 사용합니다. 또한 SharePoint 문서 라이브러리에 대한 데이터 연결을 데이터 연결 대화 상자에서 현재 버전으로 변환 단추를 사용하여 변환하는 경우에는 SharepointListQueryConnection 클래스의 멤버를 사용하는 모든 코드를 다시 작성하여 SharePointListRWQueryConnection 클래스의 멤버를 대신 사용하도록 해야 합니다.

SharePointListQueryConnection 개체는 SharePoint 목록 또는 문서 라이브러리에서 데이터를 검색하는 데 필요한 모든 정보를 지정하는 데이터 연결 마법사를 사용하여 InfoPath에서 만든 보조 데이터 연결을 나타냅니다.

SharePointListQueryConnection 클래스는 데이터 연결의 이름 및 연결을 통해 데이터를 검색할 대상 Windows SharePoint Services 사이트의 목록 또는 문서 라이브러리에 대한 URL(Uniform Resource Locator)을 가져오는 데 사용할 수 있는 속성을 제공합니다.

데이터 연결과 관련된 SharePointListQueryConnection 개체는 양식 서식 파일의 DataConnectionCollection에서 연결을 반환하기 위해 XmlForm 클래스의 DataConnections 속성을 사용하여 액세스할 수 있습니다.

DataConnection 기본 클래스에서 상속되는 기본 Execute 메서드는 InfoPath 양식 서식 파일 디자인 모드에서 선언적으로 정의된 값을 사용하여 쿼리 또는 전송 작업을 실행합니다. 또한 SharePointListQueryConnection 클래스는 반환되는 데이터를 삽입할 다른 위치를 지정할 수 있도록 SharepointListQueryConnection.Execute 메서드도 제공합니다.

SharePointListQueryConnection 클래스는 Microsoft Office InfoPath 2003 개체 모델의 SharePointListAdapterObject 인터페이스에 해당합니다.

다음 예제에서는 DataConnectionCollection 클래스의 Item 속성에 이름을 전달한 다음, 반환된 개체를 SharePointListQueryConnection 형식으로 캐스팅하여 "Contacts"라는 연결을 나타내는 SharePointListQueryConnection 개체에 대한 참조를 설정합니다. 이 연결은 SharePoint의 연락처 정보 목록에 연결됩니다.

[C#]

SharePointListQueryConnection spConnection = (SharePointListQueryConnection)this.DataConnections["Contacts"];
Dim spConnection As SharePointListQueryConnection = _
   DirectCast(Me.DataConnections("Contacts"), _
   SharePointListQueryConnection)

SharePointListQueryConnection 개체에 대한 참조를 설정하면 이 개체의 속성이나 메서드를 사용할 수 있습니다. 다음 예제에서는 string 변수를 DataConnection 기본 클래스에서 상속된 Name 속성에서 반환하는 값으로 설정합니다.

string spName = spConnection.Name;
Dim spName As String = spConnection.Name

스레드 보안

이 형식의 모든 공용 static (Visual Basic의Shared ) 멤버는 스레드로부터 안전합니다. 모든 인스턴스 멤버는 스레드로부터 안전하지 않을 수도 있습니다.

참고 항목

참조

SharepointListQueryConnection 멤버

Microsoft.Office.InfoPath 네임스페이스