PRIMAVERA | Developers

    Show / Hide Table of Contents

    Class StdBEADUCategorias

    Classe que identifica uma colecção de Categorias dos Alertas do Utilizador.

    Inheritance
    System.Object
    StdBEADUCategorias
    Implements
    System.Collections.IEnumerable
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: StdPlatBE100
    Assembly: StdPlatBE100.dll
    Syntax
    public class StdBEADUCategorias : IEnumerable

    Constructors

    StdBEADUCategorias()

    Construtor

    Declaration
    public StdBEADUCategorias()

    Properties

    NumItens

    Devolve o número de elementos da colecção.

    Declaration
    public int NumItens { get; }
    Property Value
    Type Description
    System.Int32

    Methods

    BuildKey(String, String)

    Devolve uma chave.

    Declaration
    public string BuildKey(string strIdAlerta, string strCategoria)
    Parameters
    Type Name Description
    System.String strIdAlerta

    Campo para a chave.

    System.String strCategoria

    Campo para a chave.

    Returns
    Type Description
    System.String

    CategoriasExtenso(String)

    Devolve uma String contendo todos as categorias da Colection.

    Declaration
    public string CategoriasExtenso(string strSeparador = ", ")
    Parameters
    Type Name Description
    System.String strSeparador

    Separador usado para juntar os dados.

    Returns
    Type Description
    System.String

    Existe(String, String)

    Indica se uma dada categoria pertence á colecção.

    Declaration
    public bool Existe(string strIdAlerta, string strCategoria)
    Parameters
    Type Name Description
    System.String strIdAlerta

    Identificador do alerta.

    System.String strCategoria

    Categoria.

    Returns
    Type Description
    System.Boolean

    Finalize()

    Destrutor

    Declaration
    protected void Finalize()

    GetEdita(Object)

    Devolve um elemento da colecção.

    Declaration
    public StdBEADUCategoria GetEdita(object vntIndex)
    Parameters
    Type Name Description
    System.Object vntIndex

    Posição do elemento.

    Returns
    Type Description
    StdBEADUCategoria

    GetEnumerator()

    Devolve o enumerador

    Declaration
    public IEnumerator GetEnumerator()
    Returns
    Type Description
    System.Collections.IEnumerator

    GetIndex(String, String)

    Devolve o index

    Declaration
    public int GetIndex(string strIdAlerta, string strCategoria)
    Parameters
    Type Name Description
    System.String strIdAlerta

    Campo para a chave.

    System.String strCategoria

    Campo para a chave.

    Returns
    Type Description
    System.Int32

    Insere(StdBEADUCategoria)

    Insere um elemento na colecção.

    Declaration
    public void Insere(StdBEADUCategoria objElemento)
    Parameters
    Type Name Description
    StdBEADUCategoria objElemento

    Elemento a inserir.

    InsereNovo(String, String)

    Insere um novo elemento na colecção.

    Declaration
    public void InsereNovo(string strIdAlerta, string strCategoria)
    Parameters
    Type Name Description
    System.String strIdAlerta

    Identificador do alerta.

    System.String strCategoria

    Categoria.

    Remove(Object)

    Remove um elemento da colecção.

    Declaration
    public void Remove(object vntIndex)
    Parameters
    Type Name Description
    System.Object vntIndex

    Posição do elemento a remover.

    RemoveTodos()

    Remove todos os elementos da colecção.

    Declaration
    public void RemoveTodos()

    Implements

    System.Collections.IEnumerable