PresentationContextAttribute Class

Summary
Specified a presentation context for a DICOM method. Multiple attributes can be specified for a method.
Syntax
C#
C++/CLI
[AttributeUsageAttribute(System.AttributeTargets, AllowMultiple=true)] 
public class PresentationContextAttribute : Attribute 
[AttributeUsageAttribute(ValidOn=AttributeTargets.Method,  
   AllowMultiple=true,  
   Inherited=true)] 
public ref class PresentationContextAttribute : public System.Attribute, System.Runtime.InteropServices._Attribute   
Example

Shows attribute usage on an interface.

C#
using Leadtools.Dicom.AddIn.Attributes; 
using Leadtools.Dicom.AddIn.Interfaces; 
using Leadtools.Dicom; 
using Leadtools.Dicom.AddIn; 
 
 
 
[DicomAddInAttribute("Storage Commit AddIn", "1.0.0.0", Description = "Implements Storage Commitment", Author = "")] 
public class StorageCommitAddin : IProcessNAction 
{ 
   #region IProcessNAction Members 
 
   [PresentationContext(DicomUidType.StorageCommitmentPushModelClass, DicomUidType.ImplicitVRLittleEndian)] 
   public DicomCommandStatusType OnNAction(DicomClient Client, byte PresentationId, int MessageId, string AffectedClass, string Instance, int Action, DicomDataSet Request, DicomDataSet Response) 
   { 
      return DicomCommandStatusType.Success; 
   } 
 
   #endregion 
 
   #region IProcessBreak Members 
 
   public void Break(BreakType type) 
   { 
   } 
 
   #endregion 
} 
Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Dicom.AddIn Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.