C#
VB
C++
Specified a presentation context for a DICOM method. Multiple attributes can be specified for a method.
[AttributeUsageAttribute(System.AttributeTargets, AllowMultiple=true)]public class PresentationContextAttribute : Attribute
<AttributeUsageAttribute(ValidOn=AttributeTargets.Method,AllowMultiple=True,Inherited=True)>Public Class PresentationContextAttributeInherits System.AttributeImplements System.Runtime.InteropServices._Attribute
[AttributeUsageAttribute(ValidOn=AttributeTargets.Method,AllowMultiple=true,Inherited=true)]public ref class PresentationContextAttribute : public System.Attribute, System.Runtime.InteropServices._Attribute
Shows attribute usage on an interface.
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 Memberspublic void Break(BreakType type){}#endregion}
Imports Leadtools.Dicom.AddIn.AttributesImports Leadtools.Dicom.AddIn.InterfacesImports Leadtools.DicomImports Leadtools.Dicom.AddIn<DicomAddInAttribute("Storage Commit AddIn", "1.0.0.0", Description:="Implements Storage Commitment", Author:="")>Public Class StorageCommitAddin : Implements IProcessNAction<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.OnNActionReturn DicomCommandStatusType.SuccessEnd FunctionPublic Sub Break(ByVal type As BreakType) Implements IProcessNAction.BreakEnd SubEnd Class
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
