AddFileNotificationHandler メソッド(ActiveX/ATO)

転送セットに新しいファイルが追加されると開始されます。

サポートされているプラットフォーム: Windows のみ

名前空間: TRANSMITTALLib

アセンブリ: acETransmit20.tlb

構文と要素

VB.NET:

Friend Class custom_class_name
    Implements TransmittalAddFileNotificationHandler

    Public Sub addFileNotificationHandler(pFile, pTransmit) _
        Implements TRANSMITTALLib.ITransmittalAddFileNotificationHandler.addFileNotificationHandler
        ...
    End Sub

End Class

C#:

internal class custom_class_name : TransmittalAddFileNotificationHandler
{
    public void addFileNotificationHandler(pFile, pTransmit)
    {
        ...
    }
}
custom_class_name

カスタム クラスの名前。

pFile

アクセス: 入力のみ

タイプ: TransmittalFile オブジェクト

転送セットに図面またはファイルが追加されるときに作成される TransmittalFile オブジェクトへのポインタ。

pTransmit

アクセス: 入力のみ

タイプ: TransmittalOperation オブジェクト

図面またはファイルが追加されている転送セットを表す TransmittalOperation オブジェクトへのポインタ。

戻り値(RetVal)

戻り値はありません。

注意

追加の注意はありません。

リリース情報

リリース: AutoCAD 2004 以降

VB.NET:

' Custom class used to monitor files being added to the transmittal package
Friend Class MyTransFileNotifier
    Implements TransmittalAddFileNotificationHandler

    ' Used to get a notification when a drawing or file is added to the transmittal package
    Public Sub addFileNotificationHandler(pFile As TRANSMITTALLib.TransmittalFile, _
                                          pTransmit As TRANSMITTALLib.TransmittalOperation) _
            Implements TRANSMITTALLib. _
               ITransmittalAddFileNotificationHandler.addFileNotificationHandler
        Application.DocumentManager.MdiActiveDocument.Editor. _
            WriteMessage(Environment.NewLine & _
                         "File added to transmittal package: " & pFile.sourcePath)
    End Sub
End Class

C#:

// Custom class used to monitor files being added to the transmittal package
internal class MyTransFileNotifier : TransmittalAddFileNotificationHandler
{
    // Used to get a notification when a drawing or file is added to the transmittal package
    public void addFileNotificationHandler(TRANSMITTALLib.TransmittalFile pFile, 
                                           TRANSMITTALLib.TransmittalOperation pTransmit)
    {
        Application.DocumentManager.MdiActiveDocument.Editor.
            WriteMessage(Environment.NewLine + "File added to transmittal package: " +
                         pFile.sourcePath);
    }
}