From 2c388d80a37ed93a8ada08a5d3aa929484720fac Mon Sep 17 00:00:00 2001 From: dahall Date: Thu, 2 Apr 2020 19:25:38 -0600 Subject: [PATCH] Fixed warnings for XML docs and obsolete uses --- PInvoke/NetListMgr/NetListMgr.cs | 8 ++++++++ PInvoke/TaskSchd/Vanara.PInvoke.TaskSchd.csproj | 1 + 2 files changed, 9 insertions(+) diff --git a/PInvoke/NetListMgr/NetListMgr.cs b/PInvoke/NetListMgr/NetListMgr.cs index af9d62d2..6a0fb3d0 100644 --- a/PInvoke/NetListMgr/NetListMgr.cs +++ b/PInvoke/NetListMgr/NetListMgr.cs @@ -115,6 +115,7 @@ namespace Vanara.PInvoke.NetListMgr NLM_ENUM_NETWORK_ALL = 0x03 } +#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member [Flags] [PInvokeData("Netlistmgr.h")] public enum NLM_INTERNET_CONNECTIVITY @@ -123,6 +124,7 @@ namespace Vanara.PInvoke.NetListMgr NLM_INTERNET_CONNECTIVITY_PROXIED = 0x2, NLM_INTERNET_CONNECTIVITY_CORPORATE = 0x4 } +#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member /// The NLM_NETWORK_CATEGORY enumeration is a set of flags that specify the category type of a network. [PInvokeData("Netlistmgr.h")] @@ -138,6 +140,7 @@ namespace Vanara.PInvoke.NetListMgr NLM_NETWORK_CATEGORY_DOMAIN_AUTHENTICATED } +#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member [Flags] [PInvokeData("Netlistmgr.h")] public enum NLM_NETWORK_CLASS @@ -146,6 +149,7 @@ namespace Vanara.PInvoke.NetListMgr NLM_NETWORK_IDENTIFIED = 0x2, NLM_NETWORK_UNIDENTIFIED = 0x3 } +#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member /// The NLM_NETWORK_PROPERTY_CHANGE enumeration is a set of flags that define changes made to the properties of a network. [PInvokeData("Netlistmgr.h")] @@ -176,6 +180,8 @@ namespace Vanara.PInvoke.NetListMgr [PInvokeData("Netlistmgr.h", MSDNShortId = "aa370706")] public interface IEnumNetworkConnections : IEnumerable { + /// Returns an enumerator that iterates through a collection. + /// An object that can be used to iterate through the collection. [DispId(-4)] #if (NET20 || NET35 || NET40 || NET45) [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalType = "", MarshalTypeRef = typeof(System.Runtime.InteropServices.CustomMarshalers.EnumeratorToEnumVariantMarshaler), MarshalCookie = "")] @@ -213,6 +219,8 @@ namespace Vanara.PInvoke.NetListMgr [PInvokeData("Netlistmgr.h", MSDNShortId = "aa370735")] public interface IEnumNetworks : IEnumerable { + /// Returns an enumerator that iterates through a collection. + /// An object that can be used to iterate through the collection. [DispId(-4)] #if (NET20 || NET35 || NET40 || NET45) [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalType = "", MarshalTypeRef = typeof(System.Runtime.InteropServices.CustomMarshalers.EnumeratorToEnumVariantMarshaler), MarshalCookie = "")] diff --git a/PInvoke/TaskSchd/Vanara.PInvoke.TaskSchd.csproj b/PInvoke/TaskSchd/Vanara.PInvoke.TaskSchd.csproj index ef466a49..fa995de4 100644 --- a/PInvoke/TaskSchd/Vanara.PInvoke.TaskSchd.csproj +++ b/PInvoke/TaskSchd/Vanara.PInvoke.TaskSchd.csproj @@ -46,6 +46,7 @@ ITask, ITaskScheduler, IAction, IActionCollection, IBootTrigger, IComHandlerActi true bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml + 0618