ReportingService2010.GetCacheOptions(String, ExpirationDefinition) 메서드

정의

항목에 대한 캐시 구성 및 캐시된 항목 복사본의 만료 시점을 설명하는 설정을 반환합니다. 이 메서드는 ReportDataset 항목 유형에 적용됩니다.

public:
 bool GetCacheOptions(System::String ^ ItemPath, [Runtime::InteropServices::Out] ReportService2010::ExpirationDefinition ^ % Item);
[System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetCacheOptions", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
[System.Web.Services.Protocols.SoapHeader("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeader("TrustedUserHeaderValue")]
public bool GetCacheOptions (string ItemPath, out ReportService2010.ExpirationDefinition Item);
[<System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetCacheOptions", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal)>]
[<System.Web.Services.Protocols.SoapHeader("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)>]
[<System.Web.Services.Protocols.SoapHeader("TrustedUserHeaderValue")>]
member this.GetCacheOptions : string * ExpirationDefinition -> bool
Public Function GetCacheOptions (ItemPath As String, ByRef Item As ExpirationDefinition) As Boolean

매개 변수

ItemPath
String

파일 이름과 SharePoint 모드에서는 확장명을 포함하는 항목의 정규화된 URL입니다.

Item
ExpirationDefinition

[out] 캐시된 복사본이 만료되는 시간(분) 또는 일정을 정의하는 ExpirationDefinition 개체입니다.

반환

실행된 항목의 복사본이 캐시에 있는 경우 true이고, 그렇지 않으면 false입니다.

특성

설명

다음 표에서는 이 작업에 대한 헤더 및 사용 권한 정보를 보여 줍니다.

SOAP 헤더 사용 (In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue
기본 모드 필수 권한 ReadPolicy
SharePoint 모드 필수 권한 <xref:Microsoft.SharePoint.SPBasePermissions.ViewListItems>

이 메서드의 반환 값을 사용하여 항목이 캐시되도록 설정되어 있는지 여부를 평가합니다. 값이 이면 메서드는 false에 대한 (또는 Nothing Visual Basic에서)를 Item반환 null 합니다.

실행 옵션이 요청 시 실행되도록 구성된 경우에만 이 메서드를 사용합니다. 항목의 캐시 설정에 대한 자세한 내용은 캐싱 보고서(SSRS)를 참조하세요. 프로그래밍 방식으로 항목의 캐싱 옵션을 설정하는 방법에 대한 자세한 내용은 메서드를 SetCacheOptions 참조하세요.

적용 대상