IDeploymentContext.SiteUrl 메서드

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

네임스페이스:  Microsoft.VisualStudio.SharePoint.Deployment
어셈블리:  Microsoft.VisualStudio.SharePoint(Microsoft.VisualStudio.SharePoint.dll)

구문

‘선언
Function SiteUrl As Uri
Uri SiteUrl()

반환 값

형식: System.Uri
SharePoint에 따라 프로젝트가 연결된 Microsoft.SharePoint.SPWeb의 정규 URL입니다.

설명

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

이 값은 SiteCollectionUrl과 일관성 있도록 SharePoint에서 쿼리됩니다.

예를 들어, ISharePointProject.SiteUrl이 https://localhost일 수 있지만, SharePoint는 http://hostname으로 확인합니다.

.NET Framework 보안

  • 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.

참고 항목

참조

IDeploymentContext 인터페이스

Microsoft.VisualStudio.SharePoint.Deployment 네임스페이스