Search Results for

    Show / Hide Table of Contents

    Sdl.MultiTerm.TMO.Interop.IndexesPermissions class

    Name

    Sdl.MultiTerm.TMO.Interop.IndexesPermissions — Provides programmatic access to the index permissions of the currently logged-in user.

    Description

    Via this class you can retrieve information on the indexes (i.e. languages) the currently logged-in user has access to. You can use it, for example, to generate a list of indexes that the user can access. Note that this list is not necessarily identical to the list of indexes specified in the termbase definition, as certain users may not be allowed to see particular indexes in the first place.

    Properties

    • Count: Returns the number of indexes that the currently logged-in user can access.
    • Item: Refers to a particular index permission.
    • ReadIndexes: Returns all indexes that the currently logged-in user has read-access too.
    • WriteIndexes: Returns all indexes the currently logged-in user has write access to.

    Methods

    None

    Sample

    Termbase oTb = oTbs["Termbase name"];
    
    IndexesPermissions oIndexes = oTb.AccessPermissions.IndexesPermissions;
    Debug.WriteLine("Number of indexes user can access: " + oIndexes.Count.ToString());
    
    //list indexes
    for(int i=0;i<oIndexes.Count;i++)
    {
       	Debug.WriteLine(oIndexes[i].Label);
    }
    
    • Improve this Doc
    In this article
    Back to top Generated by DocFX