Class DicomExtendedNegotiationCollection
- Namespace
- FellowOakDicom.Network
- Assembly
- fo-dicom.core.dll
public class DicomExtendedNegotiationCollection : ICollection<DicomExtendedNegotiation>, IEnumerable<DicomExtendedNegotiation>, IEnumerable
- Inheritance
-
DicomExtendedNegotiationCollection
- Implements
- Inherited Members
- Extension Methods
Constructors
DicomExtendedNegotiationCollection()
Initializes a new instance of DicomExtendedNegotiationCollection.
public DicomExtendedNegotiationCollection()
Properties
Count
Gets the number of extended negotiations in collection.
public int Count { get; }
Property Value
IsReadOnly
Gets whether collection is read-only. Is always
false.
public bool IsReadOnly { get; }
Property Value
this[DicomUID]
Gets the Extended negotiation associated with id.
public DicomExtendedNegotiation this[DicomUID id] { get; }
Parameters
idDicomUIDSOP Class UID.
Property Value
- DicomExtendedNegotiation
Extended negotiation associated with
id
Methods
AcceptApplicationInfo(DicomUID, DicomServiceApplicationInfo)
Accept Extended Negotiation with Service Class Application Info from the SCP.
public void AcceptApplicationInfo(DicomUID sopClassUid, DicomServiceApplicationInfo applicationInfo)
Parameters
sopClassUidDicomUIDSOP Class UID.
applicationInfoDicomServiceApplicationInfoService Class Application Info.
Add(DicomUID, DicomUID, params DicomUID[])
Add Common Extended Negotiation with Service Class UID and Related General SOP Class UIDs
public void Add(DicomUID sopClassUid, DicomUID serviceClassUid, params DicomUID[] relatedGeneralSopClasses)
Parameters
sopClassUidDicomUIDSOP Class UID.
serviceClassUidDicomUIDCommon Service Class UID.
relatedGeneralSopClassesDicomUID[]Related General SOP Classes.
Add(DicomUID, DicomServiceApplicationInfo)
Add Extended Negotiation with Service Class Application Info
public void Add(DicomUID sopClassUid, DicomServiceApplicationInfo applicationInfo)
Parameters
sopClassUidDicomUIDSOP Class UID.
applicationInfoDicomServiceApplicationInfoService Class Application Info.
Add(DicomUID, DicomServiceApplicationInfo, DicomUID, params DicomUID[])
Add (Common) Extended Negotiation with Application Info, Service Class UID and Related General SOP Class UIDs
public void Add(DicomUID sopClassUid, DicomServiceApplicationInfo applicationInfo, DicomUID serviceClassUid, params DicomUID[] relatedGeneralSopClasses)
Parameters
sopClassUidDicomUIDSOP Class UID.
applicationInfoDicomServiceApplicationInfoService Class Application Info.
serviceClassUidDicomUIDCommon Service Class UID.
relatedGeneralSopClassesDicomUID[]Related General SOP Classes.
Add(DicomExtendedNegotiation)
Add new extended negotiation object.
public void Add(DicomExtendedNegotiation item)
Parameters
itemDicomExtendedNegotiationExtended negotiation to be added.
AddFromRequest(DicomRequest)
Add Extended Negotiation obtained from DICOM request. Note: The extended negotiation will affect all requests that share the same SOP class within an association.
public void AddFromRequest(DicomRequest dicomRequest)
Parameters
dicomRequestDicomRequestRequest from which extended negotiation info should be obtained.
AddOrUpdate(DicomUID, DicomUID, params DicomUID[])
Add or update Common Extended Negotiation with Service Class UID and Related General SOP Class UIDs.
public void AddOrUpdate(DicomUID sopClassUid, DicomUID serviceClassUid, params DicomUID[] relatedGeneralSopClasses)
Parameters
sopClassUidDicomUIDSOP Class UID.
serviceClassUidDicomUIDCommon Service Class UID.
relatedGeneralSopClassesDicomUID[]Related General SOP Classes.
AddOrUpdate(DicomUID, DicomServiceApplicationInfo)
Add or update Extended Negotiation with Service Class Application Info.
public void AddOrUpdate(DicomUID sopClassUid, DicomServiceApplicationInfo applicationInfo)
Parameters
sopClassUidDicomUIDSOP Class UID.
applicationInfoDicomServiceApplicationInfoService Class Application Info.
AddOrUpdate(DicomUID, DicomServiceApplicationInfo, DicomUID, params DicomUID[])
Add or update (Common) Extended Negotiation with Application Info, Service Class UID and Related General SOP Class UIDs
public void AddOrUpdate(DicomUID sopClassUid, DicomServiceApplicationInfo applicationInfo, DicomUID serviceClassUid, params DicomUID[] relatedGeneralSopClasses)
Parameters
sopClassUidDicomUIDSOP Class UID.
applicationInfoDicomServiceApplicationInfoService Class Application Info.
serviceClassUidDicomUIDCommon Service Class UID.
relatedGeneralSopClassesDicomUID[]Related General SOP Classes.
Clear()
Clear all extended negotiations in collection.
public void Clear()
Contains(DicomUID)
Indicates if specified uid is contained in collection
public bool Contains(DicomUID item)
Parameters
itemDicomUIDSOP Class UID to search for.
Returns
- bool
iftrueitemis contained in collection,
otherwise.false
Contains(DicomExtendedNegotiation)
Indicates if specified extended negotiation is contained in collection.
public bool Contains(DicomExtendedNegotiation item)
Parameters
itemDicomExtendedNegotiationExtended negotiation to search for.
Returns
- bool
iftrueitemis contained in collection,
otherwise.false
CopyTo(DicomExtendedNegotiation[], int)
Not implemented.
public void CopyTo(DicomExtendedNegotiation[] array, int arrayIndex)
Parameters
arrayDicomExtendedNegotiation[]Array of extended negotiations
arrayIndexintThe zero-based index in
arrayat which copying begins.
Exceptions
GetEnumerator()
Returns an enumerator that iterates through the collection.
public IEnumerator<DicomExtendedNegotiation> GetEnumerator()
Returns
- IEnumerator<DicomExtendedNegotiation>
A IEnumerator<T> that can be used to iterate through the collection.
Remove(DicomExtendedNegotiation)
Removes the Extended Negotiation with same SOP Class if it exists.
public bool Remove(DicomExtendedNegotiation item)
Parameters
itemDicomExtendedNegotiationExtended Negotiation with same SOP Class to be removed.
Returns
- bool
whentrueitemis removed from collection,
otherwise.false