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
id
DicomUIDSOP 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
sopClassUid
DicomUIDSOP Class UID.
applicationInfo
DicomServiceApplicationInfoService 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
sopClassUid
DicomUIDSOP Class UID.
serviceClassUid
DicomUIDCommon Service Class UID.
relatedGeneralSopClasses
DicomUID[]Related General SOP Classes.
Add(DicomUID, DicomServiceApplicationInfo)
Add Extended Negotiation with Service Class Application Info
public void Add(DicomUID sopClassUid, DicomServiceApplicationInfo applicationInfo)
Parameters
sopClassUid
DicomUIDSOP Class UID.
applicationInfo
DicomServiceApplicationInfoService 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
sopClassUid
DicomUIDSOP Class UID.
applicationInfo
DicomServiceApplicationInfoService Class Application Info.
serviceClassUid
DicomUIDCommon Service Class UID.
relatedGeneralSopClasses
DicomUID[]Related General SOP Classes.
Add(DicomExtendedNegotiation)
Add new extended negotiation object.
public void Add(DicomExtendedNegotiation item)
Parameters
item
DicomExtendedNegotiationExtended 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
dicomRequest
DicomRequestRequest 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
sopClassUid
DicomUIDSOP Class UID.
serviceClassUid
DicomUIDCommon Service Class UID.
relatedGeneralSopClasses
DicomUID[]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
sopClassUid
DicomUIDSOP Class UID.
applicationInfo
DicomServiceApplicationInfoService 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
sopClassUid
DicomUIDSOP Class UID.
applicationInfo
DicomServiceApplicationInfoService Class Application Info.
serviceClassUid
DicomUIDCommon Service Class UID.
relatedGeneralSopClasses
DicomUID[]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
item
DicomUIDSOP Class UID to search for.
Returns
- bool
iftrue
item
is contained in collection,
otherwise.false
Contains(DicomExtendedNegotiation)
Indicates if specified extended negotiation is contained in collection.
public bool Contains(DicomExtendedNegotiation item)
Parameters
item
DicomExtendedNegotiationExtended negotiation to search for.
Returns
- bool
iftrue
item
is contained in collection,
otherwise.false
CopyTo(DicomExtendedNegotiation[], int)
Not implemented.
public void CopyTo(DicomExtendedNegotiation[] array, int arrayIndex)
Parameters
array
DicomExtendedNegotiation[]Array of extended negotiations
arrayIndex
intThe zero-based index in
array
at 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
item
DicomExtendedNegotiationExtended Negotiation with same SOP Class to be removed.
Returns
- bool
whentrue
item
is removed from collection,
otherwise.false