TranslationCollection Class

 

Applies To: SQL Server (starting with 2016)

Contains a collection of Translation objects.

Namespace:   Microsoft.AnalysisServices
Assembly:  Microsoft.AnalysisServices.Core (in Microsoft.AnalysisServices.Core.dll)

Inheritance Hierarchy

System.Object
  Microsoft.AnalysisServices.ModelComponentCollection
    Microsoft.AnalysisServices.TranslationCollection
      Microsoft.AnalysisServices.AttributeTranslationCollection

Syntax

[GuidAttribute("2F2699BD-B28C-4d39-A0B1-D76EEF27B7E1")]
public class TranslationCollection : ModelComponentCollection
[GuidAttribute("2F2699BD-B28C-4d39-A0B1-D76EEF27B7E1")]
public ref class TranslationCollection : ModelComponentCollection
[<GuidAttribute("2F2699BD-B28C-4d39-A0B1-D76EEF27B7E1")>]
type TranslationCollection = 
    class
        inherit ModelComponentCollection
    end
<GuidAttribute("2F2699BD-B28C-4d39-A0B1-D76EEF27B7E1")>
Public Class TranslationCollection
    Inherits ModelComponentCollection

Properties

Name Description
System_CAPS_pubproperty Count

Gets the number of ModelComponent objects in the ModelComponentCollection.(Inherited from ModelComponentCollection.)

System_CAPS_protproperty DemandLoadingService

Gets the demand loading service for the collection.(Inherited from ModelComponentCollection.)

System_CAPS_pubproperty IsFixedSize

Gets a value indicating whether the ModelComponentCollection has a fixed size.(Inherited from ModelComponentCollection.)

System_CAPS_pubproperty IsReadOnly

Gets a value indicating whether the ModelComponentCollection is read-only.(Inherited from ModelComponentCollection.)

System_CAPS_pubproperty IsSynchronized

Gets a value indicating whether access to the ModelComponentCollection is synchronized (thread-safe).(Inherited from ModelComponentCollection.)

System_CAPS_pubproperty Item[Int32]

Gets the Translation at the specified index from the collection.

System_CAPS_protproperty ItemsType

Gets the Type of objects that can be contained by the TranslationCollection.(Overrides ModelComponentCollection.ItemsType.)

System_CAPS_pubproperty Parent

Gets the IModelComponent that contains the ModelComponentCollection.(Inherited from ModelComponentCollection.)

System_CAPS_protproperty Preloadable

Gets a value indicating whether the collection can be preloaded.(Inherited from ModelComponentCollection.)

System_CAPS_pubproperty SyncRoot

Gets an object that can be used to synchronize access to the ModelComponentCollection.(Inherited from ModelComponentCollection.)

Methods

Name Description
System_CAPS_pubmethod Add(Int32)

Creates and adds a Translation, with the specified language, to the end of the collection.

System_CAPS_pubmethod Add(Int32, String)

Creates and adds a Translation, with the specified language and caption, to the end of the collection.

System_CAPS_protmethod Add(ModelComponent)

Adds a ModelComponent object to the ModelComponentCollection.(Inherited from ModelComponentCollection.)

System_CAPS_protmethod Add(ModelComponent, Boolean)

Adds a ModelComponent object to the ModelComponentCollection.(Inherited from ModelComponentCollection.)

System_CAPS_protmethod Add(String, IModelComponent)

Adds a IModelComponent object to the ModelComponentCollection.(Inherited from ModelComponentCollection.)

System_CAPS_protmethod Add(String, IModelComponent, Boolean)

Adds a IModelComponent object to the ModelComponentCollection.(Inherited from ModelComponentCollection.)

System_CAPS_pubmethod Add(Translation)

Adds a Translation to the end of the collection.

System_CAPS_protmethod AddNew(String, String, Type)

Adds a new IModelComponent to the collection.(Inherited from ModelComponentCollection.)

System_CAPS_protmethod AddNew(String, Type)

Adds a new IModelComponent to the collection.(Inherited from ModelComponentCollection.)

System_CAPS_pubmethod CanAdd(ModelComponent, String)

Indicates whether the collection can add a ModelComponent.(Inherited from ModelComponentCollection.)

System_CAPS_protmethod ChangeKey(String, String)

Changes the specified keys to the collection.(Inherited from ModelComponentCollection.)

System_CAPS_pubmethod Clear()

Removes all elements from the ModelComponentCollection.(Inherited from ModelComponentCollection.)

System_CAPS_protmethod Contains(IModelComponent)

Determines whether the specified item is in the collection.(Inherited from ModelComponentCollection.)

System_CAPS_pubmethod Contains(Int32)

Indicates whether the collection contains a Translation with the specified language.

System_CAPS_protmethod Contains(String)

Determines whether an item with the specified key is in the ModelComponentCollection.(Inherited from ModelComponentCollection.)

System_CAPS_pubmethod Contains(Translation)

Indicates whether the collection contains a specified Translation.

System_CAPS_pubmethod CopyTo(Array, Int32)

Copies the entire ModelComponentCollection to a one-dimensional Array, starting at the specified index of the target array.(Inherited from ModelComponentCollection.)

System_CAPS_protmethod EnsureLoaded()

Ensures the collection is loaded.(Inherited from ModelComponentCollection.)

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod FindByLanguage(Int32)

Indicates whether the collection contains a Translation with the specified language.

System_CAPS_pubmethod GetByLanguage(Int32)

Indicates whether the collection contains a Translation with the specified language.

System_CAPS_pubmethod GetEnumerator()

Returns an enumerator that can iterate through the ModelComponentCollection.(Inherited from ModelComponentCollection.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_protmethod GetItem(String, Boolean, String)

Gets a reference to the specified component.(Inherited from ModelComponentCollection.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod IndexOf(IModelComponent)

Searches for the specified item and returns its zero-based index within the collection.(Inherited from ModelComponentCollection.)

System_CAPS_pubmethod IndexOf(Int32)

Gets the index of a Translation, with the specified language.

System_CAPS_protmethod IndexOf(String)

Returns the zero-based index of the first occurrence of an IModelComponent that has the specified key in the ModelComponentCollection.(Inherited from ModelComponentCollection.)

System_CAPS_pubmethod IndexOf(Translation)

Gets the index of a specified Translation.

System_CAPS_protmethod Insert(IModelComponent, String, Int32)

Inserts an IModelComponent in the ModelComponentCollection.(Inherited from ModelComponentCollection.)

System_CAPS_protmethod Insert(IModelComponent, String, Int32, Boolean)

Inserts an IModelComponent in the ModelComponentCollection.(Inherited from ModelComponentCollection.)

System_CAPS_pubmethod Insert(Int32, Int32)

Creates and inserts a Translation, with the specified language, into the collection at the specified index.

System_CAPS_protmethod Insert(Int32, ModelComponent)

Inserts an ModelComponent in the ModelComponentCollection.(Inherited from ModelComponentCollection.)

System_CAPS_pubmethod Insert(Int32, Translation)

Inserts a Translation into the collection at the specified index.

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod Move(Int32, Int32)

Moves a Translation at the current specified index to a new specified index in the collection.

System_CAPS_pubmethod Move(Translation, Int32)

Moves a Translation to a new index in the collection.

System_CAPS_protmethod Remove(IModelComponent)

Removes the specified IModelComponent from the collection.(Inherited from ModelComponentCollection.)

System_CAPS_pubmethod Remove(Int32)

Removes the Translation, with the specified language, from the collection.

System_CAPS_pubmethod Remove(Int32, Boolean)

Removes the Translation, with the specified language, from the collection.

System_CAPS_pubmethod Remove(Translation)

Removes the specified Translation from the collection.

System_CAPS_pubmethod Remove(Translation, Boolean)

Removes the specified Translation from the collection.

System_CAPS_pubmethod RemoveAt(Int32)

Removes the IModelComponent at the specified index from the ModelComponentCollection.(Inherited from ModelComponentCollection.)

System_CAPS_pubmethod RemoveAt(Int32, Boolean)

Removes the IModelComponent at the specified index from the ModelComponentCollection.(Inherited from ModelComponentCollection.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Events

Name Description
System_CAPS_pubevent CollectionChanged

Occurs when the collection changes.(Inherited from ModelComponentCollection.)

System_CAPS_pubevent CollectionChanging

Occurs when the collection is changing.(Inherited from ModelComponentCollection.)

Explicit Interface Implementations

Name Description
System_CAPS_pubinterfaceSystem_CAPS_privmethod IOnDemandLoadableCollection.BlockOnDemandLoad(Boolean)

Specifies the blocked demand load.(Inherited from ModelComponentCollection.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IModelComponentCollection.Contains(IModelComponent)

Indicates whether the collection contains a specific value.(Inherited from ModelComponentCollection.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IModelComponentCollection.Remove(IModelComponent)

Removes the first occurrence of a specific IModelComponent from the ModelComponentCollection.(Inherited from ModelComponentCollection.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IModelComponentCollection.Remove(IModelComponent, Boolean)

Removes the first occurrence of a specific IModelComponent from the ModelComponentCollection.(Inherited from ModelComponentCollection.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IList.Add(Object)

Adds an item to the collection.(Inherited from ModelComponentCollection.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IList.Clear()

Removes all items from the collection.(Inherited from ModelComponentCollection.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IList.Contains(Object)

Indicates whether the collection contains a specific value.(Inherited from ModelComponentCollection.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IList.IndexOf(Object)

Determines the index of a specific item in the collection.(Inherited from ModelComponentCollection.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IList.Insert(Int32, Object)

Inserts an item to the collection at the specified index.(Inherited from ModelComponentCollection.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IList.Remove(Object)

Removes the first occurrence of a specified object from the collection.(Inherited from ModelComponentCollection.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IList.RemoveAt(Int32)

Removes the item at the specified index.(Inherited from ModelComponentCollection.)

System_CAPS_pubinterfaceSystem_CAPS_privproperty IOnDemandLoadableCollection.Loaded

(Inherited from ModelComponentCollection.)

System_CAPS_pubinterfaceSystem_CAPS_privproperty IList.Item[Int32]

(Inherited from ModelComponentCollection.)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.AnalysisServices Namespace

Return to top