←Select platform

DicomAddInAttribute Class

Summary

Specifies information about the DICOM addin.

Syntax

C#
VB
C++
[AttributeUsageAttribute(ValidOn=AttributeTargets.Class,  
   AllowMultiple=false,  
   Inherited=true)] 
public class DicomAddInAttribute : System.Attribute, System.Runtime.InteropServices._Attribute 
<AttributeUsageAttribute(ValidOn=AttributeTargets.Class,  
   AllowMultiple=False,  
   Inherited=True)> 
Public Class DicomAddInAttribute  
   Inherits System.Attribute 
   Implements System.Runtime.InteropServices._Attribute 
[AttributeUsageAttribute(ValidOn=AttributeTargets.Class,  
   AllowMultiple=false,  
   Inherited=true)] 
public ref class DicomAddInAttribute : public System.Attribute, System.Runtime.InteropServices._Attribute 

Example

Shows attribute usage on an interface.

C#
VB
Imports Leadtools.Dicom.AddIn.Attributes 
Imports Leadtools.Dicom.AddIn.Interfaces 
Imports Leadtools.Dicom 
Imports Leadtools.Dicom.AddIn 
 
<DicomAddInAttribute("Storage Commit AddIn", "1.0.0.0", Description := "Implements Storage Commitment", Author := "")> _ 
Public Class StorageCommitAddin : Implements IProcessNAction 
   #Region "IProcessNAction Members" 
 
   <PresentationContext(DicomUidType.StorageCommitmentPushModelClass, DicomUidType.ImplicitVRLittleEndian)> _ 
   Public Function OnNAction(ByVal Client As DicomClient, ByVal PresentationId As Byte, ByVal MessageId As Integer, ByVal AffectedClass As String, _ 
                       ByVal Instance As String, ByVal Action As Integer, ByVal Request As DicomDataSet, ByVal Response As DicomDataSet) As  _ 
                    DicomCommandStatusType Implements IProcessNAction.OnNAction 
      Return DicomCommandStatusType.Success 
   End Function 
 
   #End Region 
 
   #Region "IProcessBreak Members" 
 
   Public Sub Break(ByVal type As BreakType) Implements IProcessNAction.Break 
   End Sub 
 
   #End Region 
End Class 
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

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Dicom.AddIn Assembly
Click or drag to resize