Fix SA1642 for Microsoft.Management.Infrastructure.CimCmdlets (#14239)

https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1642.md
This commit is contained in:
xtqqczze 2020-11-27 08:07:58 +00:00 committed by GitHub
parent dc9ecd9a85
commit 908cf899e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
31 changed files with 141 additions and 126 deletions

View file

@ -26,7 +26,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
#region Constructor
/// <summary>
/// The constructor.
/// Initializes a new instance of the <see cref="CimAsyncOperation"/> class.
/// </summary>
protected CimAsyncOperation()
{

View file

@ -17,7 +17,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
internal abstract class CimBaseAction
{
/// <summary>
/// Constructor method.
/// Initializes a new instance of the <see cref="CimBaseAction"/> class.
/// </summary>
protected CimBaseAction()
{
@ -56,7 +56,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
internal class CimSyncAction : CimBaseAction, IDisposable
{
/// <summary>
/// The constructor.
/// Initializes a new instance of the <see cref="CimSyncAction"/> class.
/// </summary>
public CimSyncAction()
{

View file

@ -25,7 +25,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
internal class ParameterDefinitionEntry
{
/// <summary>
/// Constructor.
/// Initializes a new instance of the <see cref="ParameterDefinitionEntry"/> class.
/// </summary>
/// <param name="parameterSetName"></param>
/// <param name="mandatory"></param>
@ -54,7 +54,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
internal class ParameterSetEntry
{
/// <summary>
/// Constructor.
/// Initializes a new instance of the <see cref="ParameterSetEntry"/> class.
/// </summary>
/// <param name="mandatoryParameterCount"></param>
internal ParameterSetEntry(UInt32 mandatoryParameterCount)
@ -65,7 +65,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
}
/// <summary>
/// Constructor.
/// Initializes a new instance of the <see cref="ParameterSetEntry"/> class.
/// </summary>
/// <param name="toClone"></param>
internal ParameterSetEntry(ParameterSetEntry toClone)
@ -76,7 +76,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
}
/// <summary>
/// Constructor.
/// Initializes a new instance of the <see cref="ParameterSetEntry"/> class.
/// </summary>
/// <param name="mandatoryParameterCount"></param>
/// <param name="mandatory"></param>
@ -133,7 +133,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
internal class ParameterBinder
{
/// <summary>
/// Constructor.
/// Initializes a new instance of the <see cref="ParameterBinder"/> class.
/// </summary>
/// <param name="parameters"></param>
/// <param name="sets"></param>
@ -483,7 +483,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
#region constructors
/// <summary>
/// Constructor.
/// Initializes a new instance of the <see cref="CimBaseCommand"/> class.
/// </summary>
internal CimBaseCommand()
{
@ -492,7 +492,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
}
/// <summary>
/// Constructor.
/// Initializes a new instance of the <see cref="CimBaseCommand"/> class.
/// </summary>
internal CimBaseCommand(Dictionary<string, HashSet<ParameterDefinitionEntry>> parameters,
Dictionary<string, ParameterSetEntry> sets)

View file

@ -17,9 +17,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
internal sealed class CimGetAssociatedInstance : CimAsyncOperation
{
/// <summary>
/// <para>
/// Constructor
/// </para>
/// Initializes a new instance of the <see cref="CimGetAssociatedInstance"/> class.
/// </summary>
public CimGetAssociatedInstance()
: base()

View file

@ -17,9 +17,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
internal class CimGetCimClassContext : XOperationContextBase
{
/// <summary>
/// <para>
/// Constructor
/// </para>
/// Initializes a new instance of the <see cref="CimGetCimClassContext"/> class.
/// </summary>
/// <param name="methodName"></param>
/// <param name="propertyName"></param>
@ -82,9 +80,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
internal sealed class CimGetCimClass : CimAsyncOperation
{
/// <summary>
/// <para>
/// Constructor
/// </para>
/// Initializes a new instance of the <see cref="CimGetCimClass"/> class.
/// </summary>
public CimGetCimClass()
: base()

View file

@ -51,6 +51,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
internal class CimGetInstance : CimAsyncOperation
{
/// <summary>
/// Initializes a new instance of the <see cref="CimGetInstance"/> class.
/// <para>
/// Constructor
/// </para>

View file

@ -48,9 +48,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
public Exception Exception { get; }
/// <summary>
/// <para>
/// Constructor
/// </para>
/// Initializes a new instance of the <see cref="CimIndicationEventExceptionEventArgs"/> class.
/// </summary>
/// <param name="result"></param>
public CimIndicationEventExceptionEventArgs(Exception theException)
@ -100,9 +98,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
}
/// <summary>
/// <para>
/// Constructor
/// </para>
/// Initializes a new instance of the <see cref="CimIndicationEventInstanceEventArgs"/> class.
/// </summary>
/// <param name="result"></param>
public CimIndicationEventInstanceEventArgs(CimSubscriptionResult result)
@ -146,9 +142,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
public event EventHandler<CimIndicationEventArgs> CimIndicationArrived;
/// <summary>
/// <para>
/// Constructor with given computerName, namespace, queryExpression and timeout
/// </para>
/// Initializes a new instance of the <see cref="CimIndicationWatcher"/> class.
/// </summary>
/// <param name="computerName"></param>
/// <param name="nameSpace"></param>
@ -168,9 +162,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
}
/// <summary>
/// <para>
/// Constructor with given cimsession, namespace, queryExpression and timeout
/// </para>
/// Initializes a new instance of the <see cref="CimIndicationWatcher"/> class.
/// </summary>
/// <param name="cimSession"></param>
/// <param name="nameSpace"></param>

View file

@ -27,9 +27,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
internal class CimInvokeCimMethodContext : XOperationContextBase
{
/// <summary>
/// <para>
/// Constructor
/// </para>
/// Initializes a new instance of the <see cref="CimInvokeCimMethodContext"/> class.
/// </summary>
/// <param name="theNamespace"></param>
/// <param name="theCollection"></param>
@ -57,9 +55,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
}
/// <summary>
/// <para>
/// Constructor
/// </para>
/// Initializes a new instance of the <see cref="CimInvokeCimMethod"/> class.
/// </summary>
public CimInvokeCimMethod()
: base()

View file

@ -20,9 +20,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
internal class CimNewCimInstanceContext : XOperationContextBase
{
/// <summary>
/// <para>
/// Constructor
/// </para>
/// Initializes a new instance of the <see cref="CimNewCimInstanceContext"/> class.
/// </summary>
/// <param name="methodName"></param>
/// <param name="propertyName"></param>
@ -44,6 +42,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
internal sealed class CimNewCimInstance : CimAsyncOperation
{
/// <summary>
/// Initializes a new instance of the <see cref="CimNewCimInstance"/> class.
/// <para>
/// Constructor
/// </para>

View file

@ -22,7 +22,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
internal sealed class CimPromptUser : CimSyncAction
{
/// <summary>
/// Constructor.
/// Initializes a new instance of the <see cref="CimPromptUser"/> class.
/// </summary>
public CimPromptUser(string message,
CimPromptType prompt)

View file

@ -50,7 +50,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
public CimSubscriptionResult Result { get; }
/// <summary>
/// <para>Constructor</para>
/// Initializes a new instance of the <see cref="CimSubscriptionResultEventArgs"/> class.
/// </summary>
/// <param name="theResult"></param>
public CimSubscriptionResultEventArgs(
@ -76,7 +76,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
public Exception Exception { get; }
/// <summary>
/// <para>Constructor</para>
/// Initializes a new instance of the <see cref="CimSubscriptionExceptionEventArgs"/> class.
/// </summary>
/// <param name="theResult"></param>
public CimSubscriptionExceptionEventArgs(
@ -102,9 +102,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
public event EventHandler<CimSubscriptionEventArgs> OnNewSubscriptionResult;
/// <summary>
/// <para>
/// Constructor
/// </para>
/// Initializes a new instance of the <see cref="CimRegisterCimIndication"/> class.
/// </summary>
public CimRegisterCimIndication()
: base()

View file

@ -17,9 +17,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
internal class CimRemoveCimInstanceContext : XOperationContextBase
{
/// <summary>
/// <para>
/// Constructor
/// </para>
/// Initializes a new instance of the <see cref="CimRemoveCimInstanceContext"/> class.
/// </summary>
/// <param name="theNamespace"></param>
/// <param name="theProxy"></param>
@ -39,9 +37,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
internal sealed class CimRemoveCimInstance : CimGetInstance
{
/// <summary>
/// <para>
/// Constructor
/// </para>
/// Initializes a new instance of the <see cref="CimRemoveCimInstance"/> class.
/// </summary>
public CimRemoveCimInstance()
: base()

View file

@ -32,7 +32,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
internal class CimResultContext
{
/// <summary>
/// Constructor.
/// Initializes a new instance of the <see cref="CimResultContext"/> class.
/// </summary>
/// <param name="ErrorSource"></param>
internal CimResultContext(object ErrorSource)
@ -56,7 +56,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
internal abstract class AsyncResultEventArgsBase : EventArgs
{
/// <summary>
/// Constructor.
/// Initializes a new instance of the <see cref="AsyncResultEventArgsBase"/> class.
/// </summary>
/// <param name="session"></param>
/// <param name="observable"></param>
@ -72,7 +72,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
}
/// <summary>
/// Constructor.
/// Initializes a new instance of the <see cref="AsyncResultEventArgsBase"/> class.
/// </summary>
/// <param name="session"></param>
/// <param name="observable"></param>
@ -109,9 +109,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
internal class AsyncResultCompleteEventArgs : AsyncResultEventArgsBase
{
/// <summary>
/// <para>
/// Constructor
/// </para>
/// Initializes a new instance of the <see cref="AsyncResultCompleteEventArgs"/> class.
/// </summary>
/// <param name="session"><see cref="CimSession"/> object.</param>
/// <param name="cancellationDisposable"></param>
@ -131,7 +129,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
internal class AsyncResultObjectEventArgs : AsyncResultEventArgsBase
{
/// <summary>
/// Constructor.
/// Initializes a new instance of the <see cref="AsyncResultObjectEventArgs"/> class.
/// </summary>
/// <param name="session"></param>
/// <param name="observable"></param>
@ -156,7 +154,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
internal class AsyncResultErrorEventArgs : AsyncResultEventArgsBase
{
/// <summary>
/// Constructor.
/// Initializes a new instance of the <see cref="AsyncResultErrorEventArgs"/> class.
/// </summary>
/// <param name="session"></param>
/// <param name="observable"></param>
@ -171,7 +169,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
}
/// <summary>
/// Constructor.
/// Initializes a new instance of the <see cref="AsyncResultErrorEventArgs"/> class.
/// </summary>
/// <param name="session"></param>
/// <param name="observable"></param>
@ -214,7 +212,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
public event EventHandler<AsyncResultEventArgsBase> OnNewResult;
/// <summary>
/// Constructor.
/// Initializes a new instance of the <see cref="CimResultObserver{T}"/> class.
/// </summary>
/// <param name="session"><see cref="CimSession"/> object that issued the operation.</param>
/// <param name="observable">Operation that can be observed.</param>
@ -225,7 +223,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
}
/// <summary>
/// Constructor.
/// Initializes a new instance of the <see cref="CimResultObserver{T}"/> class.
/// </summary>
/// <param name="session"><see cref="CimSession"/> object that issued the operation.</param>
/// <param name="observable">Operation that can be observed.</param>
@ -346,7 +344,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
internal class CimSubscriptionResultObserver : CimResultObserver<CimSubscriptionResult>
{
/// <summary>
/// Constructor.
/// Initializes a new instance of the <see cref="CimSubscriptionResultObserver"/> class.
/// </summary>
/// <param name="session"></param>
/// <param name="observable"></param>
@ -356,7 +354,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
}
/// <summary>
/// Constructor.
/// Initializes a new instance of the <see cref="CimSubscriptionResultObserver"/> class.
/// </summary>
/// <param name="session"></param>
/// <param name="observable"></param>
@ -385,7 +383,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
internal class CimMethodResultObserver : CimResultObserver<CimMethodResultBase>
{
/// <summary>
/// Constructor.
/// Initializes a new instance of the <see cref="CimMethodResultObserver"/> class.
/// </summary>
/// <param name="session"></param>
/// <param name="observable"></param>
@ -395,7 +393,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
}
/// <summary>
/// Constructor.
/// Initializes a new instance of the <see cref="CimMethodResultObserver"/> class.
/// </summary>
/// <param name="session"></param>
/// <param name="observable"></param>
@ -478,7 +476,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
internal class IgnoreResultObserver : CimResultObserver<CimInstance>
{
/// <summary>
/// Constructor.
/// Initializes a new instance of the <see cref="IgnoreResultObserver"/> class.
/// </summary>
/// <param name="session"></param>
/// <param name="observable"></param>

View file

@ -224,9 +224,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
#endregion
/// <summary>
/// <para>
/// The constructor.
/// </para>
/// Initializes a new instance of the <see cref="CimSessionState"/> class.
/// </summary>
internal CimSessionState()
{
@ -745,7 +743,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
#region constructor
/// <summary>
/// The constructor.
/// Initializes a new instance of the <see cref="CimSessionBase"/> class.
/// </summary>
public CimSessionBase()
{
@ -868,9 +866,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
internal class CimTestCimSessionContext : XOperationContextBase
{
/// <summary>
/// <para>
/// The constructor.
/// </para>
/// Initializes a new instance of the <see cref="CimTestCimSessionContext"/> class.
/// </summary>
/// <param name="theProxy"></param>
/// <param name="wrapper"></param>
@ -890,9 +886,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
}
/// <summary>
/// <para>
/// The constructor.
/// </para>
/// Initializes a new instance of the <see cref="CimNewSession"/> class.
/// </summary>
internal CimNewSession() : base()
{
@ -1074,7 +1068,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
internal class CimGetSession : CimSessionBase
{
/// <summary>
/// The constructor.
/// Initializes a new instance of the <see cref="CimGetSession"/> class.
/// </summary>
public CimGetSession() : base()
{
@ -1156,7 +1150,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
internal static readonly string RemoveCimSessionActionName = "Remove CimSession";
/// <summary>
/// Constructor.
/// Initializes a new instance of the <see cref="CimRemoveSession"/> class.
/// </summary>
public CimRemoveSession() : base()
{
@ -1226,7 +1220,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
internal class CimTestSession : CimAsyncOperation
{
/// <summary>
/// Constructor.
/// Initializes a new instance of the <see cref="CimTestSession"/> class.
/// </summary>
internal CimTestSession()
: base()

View file

@ -65,7 +65,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
internal class InvocationContext
{
/// <summary>
/// Constructor.
/// Initializes a new instance of the <see cref="InvocationContext"/> class.
/// </summary>
/// <param name="proxy"></param>
internal InvocationContext(CimSessionProxy proxy)
@ -78,7 +78,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
}
/// <summary>
/// Constructor.
/// Initializes a new instance of the <see cref="InvocationContext"/> class.
/// </summary>
/// <param name="proxy"></param>
internal InvocationContext(string computerName, CimInstance targetCimInstance)
@ -135,7 +135,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
internal sealed class CmdletActionEventArgs : EventArgs
{
/// <summary>
/// Constructor.
/// Initializes a new instance of the <see cref="CmdletActionEventArgs"/> class.
/// </summary>
/// <param name="action">CimBaseAction object bound to the event.</param>
public CmdletActionEventArgs(CimBaseAction action)
@ -152,7 +152,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
internal sealed class OperationEventArgs : EventArgs
{
/// <summary>
/// Constructor.
/// Initializes a new instance of the <see cref="OperationEventArgs"/> class.
/// </summary>
/// <param name="operationCancellation">Object used to cancel the operation.</param>
/// <param name="operation">Async observable operation.</param>
@ -317,8 +317,11 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
#region constructors
/// <summary>
/// Then create wrapper object by given CimSessionProxy object.
/// Initializes a new instance of the <see cref="CimSessionProxy"/> class.
/// </summary>
/// <remarks>
/// Then create wrapper object by given CimSessionProxy object.
/// </remarks>
/// <param name="computerName"></param>
public CimSessionProxy(CimSessionProxy proxy)
{
@ -331,9 +334,12 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
}
/// <summary>
/// Initializes a new instance of the <see cref="CimSessionProxy"/> class.
/// </summary>
/// <remarks>
/// Create <see cref="CimSession"/> by given computer name.
/// Then create wrapper object.
/// </summary>
/// </remarks>
/// <param name="computerName"></param>
public CimSessionProxy(string computerName)
{
@ -342,10 +348,13 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
}
/// <summary>
/// Initializes a new instance of the <see cref="CimSessionProxy"/> class.
/// </summary>
/// <remarks>
/// Create <see cref="CimSession"/> by given computer name
/// and session options.
/// Then create wrapper object.
/// </summary>
/// </remarks>
/// <param name="computerName"></param>
/// <param name="sessionOptions"></param>
public CimSessionProxy(string computerName, CimSessionOptions sessionOptions)
@ -355,9 +364,12 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
}
/// <summary>
/// Initializes a new instance of the <see cref="CimSessionProxy"/> class.
/// </summary>
/// <remarks>
/// Create <see cref="CimSession"/> by given computer name
/// and cimInstance. Then create wrapper object.
/// </summary>
/// </remarks>
/// <param name="computerName"></param>
/// <param name="cimInstance"></param>
public CimSessionProxy(string computerName, CimInstance cimInstance)
@ -397,9 +409,12 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
}
/// <summary>
/// Initializes a new instance of the <see cref="CimSessionProxy"/> class.
/// </summary>
/// <remarks>
/// Create <see cref="CimSession"/> by given computer name,
/// session options.
/// </summary>
/// </remarks>
/// <param name="computerName"></param>
/// <param name="sessionOptions"></param>
/// <param name="operOptions">Used when create async operation.</param>
@ -410,9 +425,12 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
}
/// <summary>
/// Initializes a new instance of the <see cref="CimSessionProxy"/> class.
/// </summary>
/// <remarks>
/// Create <see cref="CimSession"/> by given computer name.
/// Then create wrapper object.
/// </summary>
/// </remarks>
/// <param name="computerName"></param>
/// <param name="operOptions">Used when create async operation.</param>
public CimSessionProxy(string computerName, CimOperationOptions operOptions)
@ -422,8 +440,11 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
}
/// <summary>
/// Create wrapper object by given session object.
/// Initializes a new instance of the <see cref="CimSessionProxy"/> class.
/// </summary>
/// <remarks>
/// Create wrapper object by given session object.
/// </remarks>
/// <param name="session"></param>
public CimSessionProxy(CimSession session)
{
@ -431,8 +452,11 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
}
/// <summary>
/// Create wrapper object by given session object.
/// Initializes a new instance of the <see cref="CimSessionProxy"/> class.
/// </summary>
/// <remarks>
/// Create wrapper object by given session object.
/// </remarks>
/// <param name="session"></param>
/// <param name="operOptions">Used when create async operation.</param>
public CimSessionProxy(CimSession session, CimOperationOptions operOptions)
@ -1900,10 +1924,13 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
#region constructors
/// <summary>
/// Initializes a new instance of the <see cref="CimSessionProxyTestConnection"/> class.
/// </summary>
/// <remarks>
/// Create <see cref="CimSession"/> by given computer name
/// and session options.
/// Then create wrapper object.
/// </summary>
/// </remarks>
/// <param name="computerName"></param>
/// <param name="sessionOptions"></param>
public CimSessionProxyTestConnection(string computerName, CimSessionOptions sessionOptions)
@ -1949,9 +1976,12 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
#region constructors
/// <summary>
/// Initializes a new instance of the <see cref="CimSessionProxyGetCimClass"/> class.
/// </summary>
/// <remarks>
/// Create <see cref="CimSession"/> by given computer name.
/// Then create wrapper object.
/// </summary>
/// </remarks>
/// <param name="computerName"></param>
public CimSessionProxyGetCimClass(string computerName)
: base(computerName)
@ -1959,10 +1989,13 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
}
/// <summary>
/// Initializes a new instance of the <see cref="CimSessionProxyGetCimClass"/> class.
/// </summary>
/// <remarks>
/// Create <see cref="CimSession"/> by given computer name
/// and session options.
/// Then create wrapper object.
/// </summary>
/// </remarks>
/// <param name="computerName"></param>
/// <param name="sessionOptions"></param>
public CimSessionProxyGetCimClass(CimSession session)
@ -2100,9 +2133,12 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
#region constructors
/// <summary>
/// Initializes a new instance of the <see cref="CimSessionProxyNewCimInstance"/> class.
/// <summary>
/// <remarks>
/// Create <see cref="CimSession"/> by given computer name.
/// Then create wrapper object.
/// </summary>
/// </remarks>
/// <param name="computerName"></param>
public CimSessionProxyNewCimInstance(string computerName, CimNewCimInstance operation)
: base(computerName)
@ -2111,10 +2147,13 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
}
/// <summary>
/// Initializes a new instance of the <see cref="CimSessionProxyNewCimInstance"/> class.
/// </summary>
/// <remarks>
/// Create <see cref="CimSession"/> by given computer name
/// and session options.
/// Then create wrapper object.
/// </summary>
/// </remarks>
/// <param name="computerName"></param>
/// <param name="sessionOptions"></param>
public CimSessionProxyNewCimInstance(CimSession session, CimNewCimInstance operation)
@ -2172,9 +2211,12 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{
#region constructors
/// <summary>
/// Initializes a new instance of the <see cref="CimSessionProxySetCimInstance"/> class.
/// </summary>
/// <remarks>
/// Create <see cref="CimSession"/> by given <see cref="CimSessionProxy"/> object.
/// Then create wrapper object.
/// </summary>
/// </remarks>
/// <param name="originalProxy"><see cref="CimSessionProxy"/> object to clone.</param>
/// <param name="passThru">PassThru, true means output the modified instance; otherwise does not output.</param>
public CimSessionProxySetCimInstance(CimSessionProxy originalProxy, bool passThru)
@ -2184,9 +2226,12 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
}
/// <summary>
/// Initializes a new instance of the <see cref="CimSessionProxySetCimInstance"/> class.
/// </summary>
/// <remarks>
/// Create <see cref="CimSession"/> by given computer name.
/// Then create wrapper object.
/// </summary>
/// </remarks>
/// <param name="computerName"></param>
/// <param name="cimInstance"></param>
/// <param name="passThru"></param>
@ -2199,10 +2244,13 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
}
/// <summary>
/// Initializes a new instance of the <see cref="CimSessionProxySetCimInstance"/> class.
/// </summary>
/// <remarks>
/// Create <see cref="CimSession"/> by given computer name
/// and session options.
/// Then create wrapper object.
/// </summary>
/// </remarks>
/// <param name="computerName"></param>
/// <param name="sessionOptions"></param>
public CimSessionProxySetCimInstance(CimSession session, bool passThru)

View file

@ -19,9 +19,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
internal class CimSetCimInstanceContext : XOperationContextBase
{
/// <summary>
/// <para>
/// Constructor
/// </para>
/// Initializes a new instance of the <see cref="CimSetCimInstanceContext"/> class.
/// </summary>
/// <param name="theNamespace"></param>
/// <param name="theCollection"></param>
@ -63,9 +61,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
internal sealed class CimSetCimInstance : CimGetInstance
{
/// <summary>
/// <para>
/// Constructor
/// </para>
/// Initializes a new instance of the <see cref="CimSetCimInstance"/> class.
/// </summary>
public CimSetCimInstance()
: base()

View file

@ -317,7 +317,8 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
internal sealed class CimWriteError : CimSyncAction
{
/// <summary>
/// Constructor with an <see cref="CimInstance"/> error.
/// Initializes a new instance of the <see cref="CimWriteError"/> class
/// with the specified <see cref="CimInstance"/>.
/// </summary>
/// <param name="error"></param>
public CimWriteError(CimInstance error, InvocationContext context)
@ -327,7 +328,8 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
}
/// <summary>
/// Construct with an exception object.
/// Initializes a new instance of the <see cref="CimWriteError"/> class
/// with the specified <see cref="Exception"/>.
/// </summary>
/// <param name="exception"></param>
public CimWriteError(Exception exception, InvocationContext context, CimResultContext cimResultContext)

View file

@ -33,7 +33,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
#endregion
/// <summary>
/// Constructor method.
/// Initializes a new instance of the <see cref="CimWriteMessage"/> class.
/// </summary>
public CimWriteMessage(UInt32 channel,
string message)

View file

@ -18,7 +18,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
internal sealed class CimWriteProgress : CimBaseAction
{
/// <summary>
/// Constructor.
/// Initializes a new instance of the <see cref="CimWriteProgress"/> class.
/// </summary>
/// <param name="activity">
/// Activity identifier of the given activity

View file

@ -15,7 +15,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
internal sealed class CimWriteResultObject : CimBaseAction
{
/// <summary>
/// Constructor.
/// Initializes a new instance of the <see cref="CimWriteResultObject"/> class.
/// </summary>
public CimWriteResultObject(object result, XOperationContextBase theContext)
{

View file

@ -123,7 +123,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
#endregion
/// <summary>
/// Constructor method.
/// Initializes a new instance of the <see cref="CmdletOperationBase"/> class.
/// </summary>
public CmdletOperationBase(Cmdlet cmdlet)
{
@ -143,7 +143,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
internal class CmdletOperationRemoveCimInstance : CmdletOperationBase
{
/// <summary>
/// Constructor method.
/// Initializes a new instance of the <see cref="CmdletOperationRemoveCimInstance"/> class.
/// </summary>
/// <param name="cmdlet"></param>
public CmdletOperationRemoveCimInstance(Cmdlet cmdlet,
@ -207,7 +207,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
internal class CmdletOperationSetCimInstance : CmdletOperationBase
{
/// <summary>
/// Constructor method.
/// Initializes a new instance of the <see cref="CmdletOperationSetCimInstance"/> class.
/// </summary>
/// <param name="cmdlet"></param>
public CmdletOperationSetCimInstance(Cmdlet cmdlet,
@ -285,7 +285,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
internal class CmdletOperationInvokeCimMethod : CmdletOperationBase
{
/// <summary>
/// Constructor method.
/// Initializes a new instance of the <see cref="CmdletOperationInvokeCimMethod"/> class.
/// </summary>
/// <param name="cmdlet"></param>
public CmdletOperationInvokeCimMethod(Cmdlet cmdlet,
@ -350,7 +350,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
internal class CmdletOperationTestCimSession : CmdletOperationBase
{
/// <summary>
/// Constructor method.
/// Initializes a new instance of the <see cref="CmdletOperationTestCimSession"/> class.
/// </summary>
/// <param name="cmdlet"></param>
public CmdletOperationTestCimSession(Cmdlet cmdlet,

View file

@ -33,7 +33,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
#region constructor
/// <summary>
/// Constructor.
/// Initializes a new instance of the <see cref="GetCimAssociatedInstanceCommand"/> class.
/// </summary>
public GetCimAssociatedInstanceCommand()
: base(parameters, parameterSets)

View file

@ -31,7 +31,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
#region constructor
/// <summary>
/// Constructor.
/// Initializes a new instance of the <see cref="GetCimClassCommand"/> class.
/// </summary>
public GetCimClassCommand()
: base(parameters, parameterSets)

View file

@ -25,6 +25,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
#region constructor
/// <summary>
/// Initializes a new instance of the <see cref="GetCimInstanceCommand"/> class.
/// Constructor.
/// </summary>
public GetCimInstanceCommand()

View file

@ -22,7 +22,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
#region constructor
/// <summary>
/// Constructor.
/// Initializes a new instance of the <see cref="GetCimSessionCommand"/> class.
/// </summary>
public GetCimSessionCommand()
: base(parameters, parameterSets)

View file

@ -27,7 +27,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
#region constructor
/// <summary>
/// Constructor.
/// Initializes a new instance of the <see cref="InvokeCimMethodCommand"/> class.
/// </summary>
public InvokeCimMethodCommand()
: base(parameters, parameterSets)

View file

@ -29,7 +29,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
#region constructor
/// <summary>
/// Constructor.
/// Initializes a new instance of the <see cref="NewCimInstanceCommand"/> class.
/// </summary>
public NewCimInstanceCommand()
: base(parameters, parameterSets)

View file

@ -45,7 +45,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
#region constructor
/// <summary>
/// Constructor.
/// Initializes a new instance of the <see cref="NewCimSessionOptionCommand"/> class.
/// </summary>
public NewCimSessionOptionCommand()
: base(parameters, parameterSets)

View file

@ -27,7 +27,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
#region constructor
/// <summary>
/// Constructor.
/// Initializes a new instance of the <see cref="RemoveCimInstanceCommand"/> class.
/// </summary>
public RemoveCimInstanceCommand()
: base(parameters, parameterSets)

View file

@ -29,7 +29,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
#region constructor
/// <summary>
/// Constructor.
/// Initializes a new instance of the <see cref="RemoveCimSessionCommand"/> class.
/// </summary>
public RemoveCimSessionCommand()
: base(parameters, parameterSets)

View file

@ -29,7 +29,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
#region constructor
/// <summary>
/// Constructor.
/// Initializes a new instance of the <see cref="SetCimInstanceCommand"/> class.
/// </summary>
public SetCimInstanceCommand()
: base(parameters, parameterSets)