Search Results for

    Show / Hide Table of Contents

    Class IdKeyMap

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

    Constructors

    IdKeyMap(IScopeProvider)

    Declaration
    public IdKeyMap(IScopeProvider scopeProvider)
    Parameters
    Type Name Description
    IScopeProvider scopeProvider

    Methods

    ClearCache()

    Declaration
    public void ClearCache()

    ClearCache(Guid)

    Declaration
    public void ClearCache(Guid key)
    Parameters
    Type Name Description
    System.Guid key

    ClearCache(Int32)

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

    Dispose()

    Declaration
    public void Dispose()

    Dispose(Boolean)

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

    GetIdForKey(Guid, UmbracoObjectTypes)

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

    GetIdForUdi(Udi)

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

    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<System.Guid>

    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>

    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
    System.Func<System.Int32, System.Guid> id2key
    System.Func<System.Guid, System.Int32> key2id
    In This Article
    • Constructors
      • IdKeyMap(IScopeProvider)
    • 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