Search Results for

    Show / Hide Table of Contents
    View Source

    Class IdKeyMap

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.Services
    Assembly: Umbraco.Core.dll
    Syntax
    public class IdKeyMap : IIdKeyMap

    Constructors

    View Source

    IdKeyMap(ICoreScopeProvider, IIdKeyMapRepository)

    Declaration
    public IdKeyMap(ICoreScopeProvider scopeProvider, IIdKeyMapRepository idKeyMapRepository)
    Parameters
    Type Name Description
    ICoreScopeProvider scopeProvider
    IIdKeyMapRepository idKeyMapRepository

    Methods

    View Source

    ClearCache()

    Declaration
    public void ClearCache()
    View Source

    ClearCache(Guid)

    Declaration
    public void ClearCache(Guid key)
    Parameters
    Type Name Description
    Guid key
    View Source

    ClearCache(Int32)

    Declaration
    public void ClearCache(int id)
    Parameters
    Type Name Description
    System.Int32 id
    View Source

    Dispose()

    Declaration
    public void Dispose()
    View Source

    Dispose(Boolean)

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing
    View Source

    GetIdForKey(Guid, UmbracoObjectTypes)

    Declaration
    public Attempt<int> GetIdForKey(Guid key, UmbracoObjectTypes umbracoObjectType)
    Parameters
    Type Name Description
    Guid key
    UmbracoObjectTypes umbracoObjectType
    Returns
    Type Description
    Attempt<System.Int32>
    View Source

    GetIdForUdi(Udi)

    Declaration
    public Attempt<int> GetIdForUdi(Udi udi)
    Parameters
    Type Name Description
    Udi udi
    Returns
    Type Description
    Attempt<System.Int32>
    View Source

    GetKeyForId(Int32, UmbracoObjectTypes)

    Declaration
    public Attempt<Guid> GetKeyForId(int id, UmbracoObjectTypes umbracoObjectType)
    Parameters
    Type Name Description
    System.Int32 id
    UmbracoObjectTypes umbracoObjectType
    Returns
    Type Description
    Attempt<Guid>
    View Source

    GetUdiForId(Int32, UmbracoObjectTypes)

    Declaration
    public Attempt<Udi> GetUdiForId(int id, UmbracoObjectTypes umbracoObjectType)
    Parameters
    Type Name Description
    System.Int32 id
    UmbracoObjectTypes umbracoObjectType
    Returns
    Type Description
    Attempt<Udi>
    View Source

    SetMapper(UmbracoObjectTypes, Func<Int32, Guid>, Func<Guid, Int32>)

    Declaration
    public void SetMapper(UmbracoObjectTypes umbracoObjectType, Func<int, Guid> id2key, Func<Guid, int> key2id)
    Parameters
    Type Name Description
    UmbracoObjectTypes umbracoObjectType
    Func<System.Int32, Guid> id2key
    Func<Guid, System.Int32> key2id
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • IdKeyMap(ICoreScopeProvider, IIdKeyMapRepository)
    • Methods
      • ClearCache()
      • ClearCache(Guid)
      • ClearCache(Int32)
      • Dispose()
      • Dispose(Boolean)
      • GetIdForKey(Guid, UmbracoObjectTypes)
      • GetIdForUdi(Udi)
      • GetKeyForId(Int32, UmbracoObjectTypes)
      • GetUdiForId(Int32, UmbracoObjectTypes)
      • SetMapper(UmbracoObjectTypes, Func<Int32, Guid>, Func<Guid, Int32>)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX