mirror of https://github.com/dahall/Vanara.git
Updated XML documentation for IMAPI
parent
e0462e6adf
commit
20ac23de3c
|
@ -297,7 +297,8 @@ namespace Vanara.PInvoke
|
||||||
public class DDiscMaster2EventsSink : DDiscMaster2Events
|
public class DDiscMaster2EventsSink : DDiscMaster2Events
|
||||||
{
|
{
|
||||||
/// <summary>Initializes a new instance of the <see cref="DDiscMaster2EventsSink"/> class.</summary>
|
/// <summary>Initializes a new instance of the <see cref="DDiscMaster2EventsSink"/> class.</summary>
|
||||||
/// <param name="onUpdate">The on update.</param>
|
/// <param name="onAdded">The delegate to call when a device is added.</param>
|
||||||
|
/// <param name="onRemoved">The delegate to call when a device is removed.</param>
|
||||||
public DDiscMaster2EventsSink(Action<IDiscMaster2, string> onAdded, Action<IDiscMaster2, string> onRemoved)
|
public DDiscMaster2EventsSink(Action<IDiscMaster2, string> onAdded, Action<IDiscMaster2, string> onRemoved)
|
||||||
{
|
{
|
||||||
if (onAdded is not null) NotifyDeviceAdded += onAdded;
|
if (onAdded is not null) NotifyDeviceAdded += onAdded;
|
||||||
|
@ -3216,6 +3217,7 @@ namespace Vanara.PInvoke
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Reads a DVD structure from the media.</summary>
|
/// <summary>Reads a DVD structure from the media.</summary>
|
||||||
|
/// <param name="obj">The <see cref="IDiscRecorder2Ex"/> instance.</param>
|
||||||
/// <param name="format">
|
/// <param name="format">
|
||||||
/// <para>Format field of the command packet. Acceptable values range from zero to 0xFF.</para>
|
/// <para>Format field of the command packet. Acceptable values range from zero to 0xFF.</para>
|
||||||
/// <para><c>Note</c> This value is truncated to <c>UCHAR</c>.</para>
|
/// <para><c>Note</c> This value is truncated to <c>UCHAR</c>.</para>
|
||||||
|
@ -3325,18 +3327,6 @@ namespace Vanara.PInvoke
|
||||||
IMAPI_MEDIA_PHYSICAL_TYPE[] SupportedMediaTypes { [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(SafeArrayMarshaler<IMAPI_MEDIA_PHYSICAL_TYPE>))] get; }
|
IMAPI_MEDIA_PHYSICAL_TYPE[] SupportedMediaTypes { [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(SafeArrayMarshaler<IMAPI_MEDIA_PHYSICAL_TYPE>))] get; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public static IMAPI_MEDIA_PHYSICAL_TYPE GetCurrentPhysicalMediaType(this IDiscFormat2 formatter) =>
|
|
||||||
(IMAPI_MEDIA_PHYSICAL_TYPE)formatter.GetType().InvokeMember("CurrentPhysicalMediaType", System.Reflection.BindingFlags.GetProperty, null, formatter, null);
|
|
||||||
|
|
||||||
public static IDiscRecorder2 GetRecorder(this IDiscFormat2 formatter) =>
|
|
||||||
(IDiscRecorder2)formatter.GetType().InvokeMember("Recorder", System.Reflection.BindingFlags.GetProperty, null, formatter, null);
|
|
||||||
|
|
||||||
public static void SetRecorder(this IDiscFormat2 formatter, IDiscRecorder2 recorder) =>
|
|
||||||
formatter.GetType().InvokeMember("Recorder", System.Reflection.BindingFlags.SetProperty, null, formatter, new object[] { recorder });
|
|
||||||
|
|
||||||
public static void SetClientName(this IDiscFormat2 formatter, string clientName) =>
|
|
||||||
formatter.GetType().InvokeMember("ClientName", System.Reflection.BindingFlags.SetProperty, null, formatter, new object[] { clientName });
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// <para>Base interface containing properties common to derived multisession interfaces.</para>
|
/// <para>Base interface containing properties common to derived multisession interfaces.</para>
|
||||||
/// <para>
|
/// <para>
|
||||||
|
|
|
@ -285,11 +285,13 @@ namespace Vanara.PInvoke
|
||||||
long totalFileItems);
|
long totalFileItems);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>Sink implementation for <see cref="DFileSystemImageImportEvents"/>.</summary>
|
||||||
|
/// <seealso cref="Vanara.PInvoke.IMAPI.DFileSystemImageImportEvents"/>
|
||||||
[ClassInterface(ClassInterfaceType.None)]
|
[ClassInterface(ClassInterfaceType.None)]
|
||||||
public class DFileSystemImageImportEventsSink : DFileSystemImageImportEvents
|
public class DFileSystemImageImportEventsSink : DFileSystemImageImportEvents
|
||||||
{
|
{
|
||||||
/// <summary>Initializes a new instance of the <see cref="DFileSystemImageEventsSink"/> class.</summary>
|
/// <summary>Initializes a new instance of the <see cref="DFileSystemImageImportEventsSink"/> class.</summary>
|
||||||
/// <param name="onUpdate">The delegate to assign to the <see cref="Update"/> event.</param>
|
/// <param name="onUpdateImport">The delegate to call on import update.</param>
|
||||||
public DFileSystemImageImportEventsSink(Action<IFileSystemImage, FsiFileSystems, string, long, long, long, long> onUpdateImport)
|
public DFileSystemImageImportEventsSink(Action<IFileSystemImage, FsiFileSystems, string, long, long, long, long> onUpdateImport)
|
||||||
{
|
{
|
||||||
if (onUpdateImport is not null) UpdateImport += onUpdateImport;
|
if (onUpdateImport is not null) UpdateImport += onUpdateImport;
|
||||||
|
|
Loading…
Reference in New Issue