LEADTOOLS Medical (Leadtools.Dicom.AddIn assembly)
LEAD Technologies, Inc

PresentationContextAttribute Class

Example 





Members 
Specified a presentation context for a DICOM method. Multiple attributes can be specified for a method.
Object Model
PresentationContextAttribute Class
Syntax
[AttributeUsageAttribute(ValidOn=AttributeTargets.Method, 
   AllowMultiple=true, 
   Inherited=true)]
public class PresentationContextAttribute : System.Attribute, System.Runtime.InteropServices._Attribute  
'Declaration
 
<AttributeUsageAttribute(ValidOn=AttributeTargets.Method, 
   AllowMultiple=True, 
   Inherited=True)>
Public Class PresentationContextAttribute 
   Inherits System.Attribute
   Implements System.Runtime.InteropServices._Attribute 
'Usage
 
Dim instance As PresentationContextAttribute
public sealed class PresentationContextAttribute : System.Runtime.InteropServices._Attribute  
function Leadtools.Dicom.AddIn.Attributes.PresentationContextAttribute()
[AttributeUsageAttribute(ValidOn=AttributeTargets.Method, 
   AllowMultiple=true, 
   Inherited=true)]
public ref class PresentationContextAttribute : public System.Attribute, System.Runtime.InteropServices._Attribute  
Example
 
<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
[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: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

PresentationContextAttribute Members
Leadtools.Dicom.AddIn.Attributes Namespace

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.

Leadtools.Dicom.AddIn requires a Medical toolkit server license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features