다음을 통해 공유


DefaultChunkTreeCache.GetOrAdd 메서드

정의

기존 ChunkTree를 얻거나 캐시에서 사용할 수 없거나 만료된 경우 새 를 만들고 추가합니다.

public:
 virtual Microsoft::AspNetCore::Razor::Chunks::ChunkTree ^ GetOrAdd(System::String ^ pagePath, Func<Microsoft::Extensions::FileProviders::IFileInfo ^, Microsoft::AspNetCore::Razor::Chunks::ChunkTree ^> ^ getChunkTree);
public Microsoft.AspNetCore.Razor.Chunks.ChunkTree GetOrAdd (string pagePath, Func<Microsoft.Extensions.FileProviders.IFileInfo,Microsoft.AspNetCore.Razor.Chunks.ChunkTree> getChunkTree);
abstract member GetOrAdd : string * Func<Microsoft.Extensions.FileProviders.IFileInfo, Microsoft.AspNetCore.Razor.Chunks.ChunkTree> -> Microsoft.AspNetCore.Razor.Chunks.ChunkTree
override this.GetOrAdd : string * Func<Microsoft.Extensions.FileProviders.IFileInfo, Microsoft.AspNetCore.Razor.Chunks.ChunkTree> -> Microsoft.AspNetCore.Razor.Chunks.ChunkTree
Public Function GetOrAdd (pagePath As String, getChunkTree As Func(Of IFileInfo, ChunkTree)) As ChunkTree

매개 변수

pagePath
String

Razor 페이지의 애플리케이션 상대 경로입니다.

getChunkTree
Func<IFileInfo,ChunkTree>

ChunkTree를 만드는 대리자입니다.

반환

ChunkTree 파일이 에 pagePathnull 있으면 이고, 그렇지 않으면 입니다.

구현

적용 대상