다음을 통해 공유


IDeploymentContext.SiteUrl 메서드

정의

SharePoint에 따라 프로젝트가 연결된 Microsoft.SharePoint.SPWeb의 canonical URL을 반환합니다.

public:
 Uri ^ SiteUrl();
public Uri SiteUrl ();
abstract member SiteUrl : unit -> Uri
Public Function SiteUrl () As Uri

반환

Uri

SharePoint에 따라 프로젝트가 연결된 Microsoft.SharePoint.SPWeb의 canonical URL입니다.

설명

이는 와 동일하거나 동일 Microsoft.VisualStudio.SharePoint.ISharePointProject.SiteUrl하지 않을 수 있지만 동일한 리소스를 가리킵니다.

이 값은 SiteCollectionUrl과 일치할 수 있도록 SharePoint에서 쿼리됩니다.

예를 들어 는 Microsoft.VisualStudio.SharePoint.ISharePointProject.SiteUrl 일 수 http://localhost있지만 SharePoint는 에 resolve.http://hostname.

적용 대상