Search Results for

    Show / Hide Table of Contents

    Class DicomServiceApplicationInfo

    Base class that encapsulates the Service Class Application Information field for the SOP Class Extended Negotiation Sub-item. Inherited classes can implement the application information specific to the Service Class specification identified by the SOP Class UID. See: http://dicom.nema.org/medical/dicom/current/output/chtml/part07/sect_D.3.3.5.html for details on the Service Class Application Information field.

    Inheritance
    Object
    DicomServiceApplicationInfo
    DicomCFindApplicationInfo
    DicomCGetApplicationInfo
    DicomCMoveApplicationInfo
    DicomCStoreApplicationInfo
    Implements
    IEnumerable<KeyValuePair<Byte, Byte>>
    IEnumerable
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Dicom.Network
    Assembly: cs.temp.dll.dll
    Syntax
    public class DicomServiceApplicationInfo : IEnumerable<KeyValuePair<byte, byte>>, IEnumerable

    Constructors

    DicomServiceApplicationInfo()

    Initializes an instance of the DicomServiceApplicationInfo class.

    Declaration
    public DicomServiceApplicationInfo()

    DicomServiceApplicationInfo(Byte[])

    Initializes an instance of the DicomServiceApplicationInfo class.

    Declaration
    public DicomServiceApplicationInfo(byte[] rawApplicationInfo)
    Parameters
    Type Name Description
    Byte[] rawApplicationInfo

    Raw byte array with the application info

    Properties

    Count

    Gets the number of fields contained in the DicomServiceApplicationInfo.

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    Int32

    Item[Byte]

    Gets the byte value for given index.

    Declaration
    public byte this[byte index] { get; protected set; }
    Parameters
    Type Name Description
    Byte index

    Application info field index.

    Property Value
    Type Description
    Byte

    Byte value

    Exceptions
    Type Condition
    ArgumentException

    Invalid field index.

    OnCreateApplicationInfo

    A delegate to be executed when the application info is created.

    Declaration
    public static DicomServiceApplicationInfo.CreateApplicationInfoDelegate OnCreateApplicationInfo { get; set; }
    Property Value
    Type Description
    DicomServiceApplicationInfo.CreateApplicationInfoDelegate

    Methods

    Add(Byte, Byte)

    Add a single application info field value given by index and value.

    Declaration
    public void Add(byte index, byte value)
    Parameters
    Type Name Description
    Byte index

    Application info field index.

    Byte value

    Application info field value.

    Exceptions
    Type Condition
    ArgumentException

    Invalid field index or a field with same index already exists.

    AddOrUpdate(Byte, Boolean)

    Add or update a single application info field value given by index and value.

    Declaration
    public void AddOrUpdate(byte index, bool value)
    Parameters
    Type Name Description
    Byte index

    Application info field index.

    Boolean value

    Application info field value.

    Exceptions
    Type Condition
    ArgumentException

    Invalid field index.

    AddOrUpdate(Byte, Byte)

    Add or update a single application info field value given by index and value.

    Declaration
    public void AddOrUpdate(byte index, byte value)
    Parameters
    Type Name Description
    Byte index

    Application info field index.

    Byte value

    Application info field value.

    Exceptions
    Type Condition
    ArgumentException

    Invalid field index.

    Contains(Byte)

    Determines whether the Service Class Application Info contains a field with the specified index.

    Declaration
    public bool Contains(byte index)
    Parameters
    Type Name Description
    Byte index

    Application info field index.

    Returns
    Type Description
    Boolean

    True if exist, otherwise False

    Create(DicomUID, Byte[])

    A factory method to initialize a new application information class based on the provided sop class.

    Declaration
    public static DicomServiceApplicationInfo Create(DicomUID sopClass, byte[] rawApplicationInfo)
    Parameters
    Type Name Description
    DicomUID sopClass

    SOP Class UID.

    Byte[] rawApplicationInfo

    The raw application info byte data.

    Returns
    Type Description
    DicomServiceApplicationInfo

    The application information class.

    GetEnumerator()

    Returns an enumerator that iterates through the Application Info fields.

    Declaration
    public IEnumerator<KeyValuePair<byte, byte>> GetEnumerator()
    Returns
    Type Description
    IEnumerator<KeyValuePair<Byte, Byte>>

    Enumerator for the Application Info fields.

    GetValue(Byte)

    Get the application info field value.

    Declaration
    public byte GetValue(byte index)
    Parameters
    Type Name Description
    Byte index

    Application info field index.

    Returns
    Type Description
    Byte

    Application info field value.

    GetValueAsBoolean(Byte, Boolean)

    Get the application info field value as

    bool
    .

    Declaration
    public bool GetValueAsBoolean(byte index, bool defaultValue)
    Parameters
    Type Name Description
    Byte index

    Application info field index.

    Boolean defaultValue

    Default value if Application info field index does not exist.

    Returns
    Type Description
    Boolean

    True if 1 or False if 0, or defaultValue if index does not exist.

    GetValueForEnum<T>(Byte, Byte)

    Get the application info field value for enum of type T.

    Declaration
    public byte GetValueForEnum<T>(byte index, byte defaultValue)
    Parameters
    Type Name Description
    Byte index

    Application info field index.

    Byte defaultValue

    Default value if Application info field index does not exist.

    Returns
    Type Description
    Byte

    Application info field value or defaultValue if not exists.

    Type Parameters
    Name Description
    T

    Enum type to verify values against.

    Exceptions
    Type Condition
    ArgumentException

    'T'T is not an Enum.

    GetValues()

    Get the raw Service Class Application Information field.

    Declaration
    public byte[] GetValues()
    Returns
    Type Description
    Byte[]

    Service Class Application Information field.

    Remove(Byte)

    Removes the field with the specified index from the Service Class Application Info.

    Declaration
    public bool Remove(byte index)
    Parameters
    Type Name Description
    Byte index

    Application info field index.

    Returns
    Type Description
    Boolean

    True if successful removed, False otherwise.

    ToString()

    Returns a string that represents the current object.

    Declaration
    public override string ToString()
    Returns
    Type Description
    String

    A string that represents the current object.

    Overrides
    Object.ToString()

    Implements

    System.Collections.Generic.IEnumerable<T>
    System.Collections.IEnumerable
    In This Article
    Back to top Copyright (c) 2012-2021 fo-dicom contributors