Updated XML documentation for IMAPI

pull/332/head
dahall 2021-04-05 20:23:18 -06:00
parent e0462e6adf
commit 20ac23de3c
2 changed files with 7 additions and 15 deletions

View File

@ -297,7 +297,8 @@ namespace Vanara.PInvoke
public class DDiscMaster2EventsSink : DDiscMaster2Events
{
/// <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)
{
if (onAdded is not null) NotifyDeviceAdded += onAdded;
@ -3216,6 +3217,7 @@ namespace Vanara.PInvoke
}
/// <summary>Reads a DVD structure from the media.</summary>
/// <param name="obj">The <see cref="IDiscRecorder2Ex"/> instance.</param>
/// <param name="format">
/// <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>
@ -3325,18 +3327,6 @@ namespace Vanara.PInvoke
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>
/// <para>Base interface containing properties common to derived multisession interfaces.</para>
/// <para>

View File

@ -285,11 +285,13 @@ namespace Vanara.PInvoke
long totalFileItems);
}
/// <summary>Sink implementation for <see cref="DFileSystemImageImportEvents"/>.</summary>
/// <seealso cref="Vanara.PInvoke.IMAPI.DFileSystemImageImportEvents"/>
[ClassInterface(ClassInterfaceType.None)]
public class DFileSystemImageImportEventsSink : DFileSystemImageImportEvents
{
/// <summary>Initializes a new instance of the <see cref="DFileSystemImageEventsSink"/> class.</summary>
/// <param name="onUpdate">The delegate to assign to the <see cref="Update"/> event.</param>
/// <summary>Initializes a new instance of the <see cref="DFileSystemImageImportEventsSink"/> class.</summary>
/// <param name="onUpdateImport">The delegate to call on import update.</param>
public DFileSystemImageImportEventsSink(Action<IFileSystemImage, FsiFileSystems, string, long, long, long, long> onUpdateImport)
{
if (onUpdateImport is not null) UpdateImport += onUpdateImport;