Fix SA1504: All accessors should be single-line or multi-lin (#14241)

https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1504.md
This commit is contained in:
xtqqczze 2021-01-09 07:44:38 +00:00 committed by GitHub
parent bb55515717
commit b7a431a442
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
88 changed files with 1049 additions and 263 deletions

View file

@ -1368,7 +1368,7 @@ dotnet_diagnostic.SA1502.severity = none
dotnet_diagnostic.SA1503.severity = none
# SA1504: All accessors should be single-line or multi-line
dotnet_diagnostic.SA1504.severity = none
dotnet_diagnostic.SA1504.severity = warning
# SA1505: Opening braces should not be followed by blank line
dotnet_diagnostic.SA1505.severity = none

View file

@ -76,7 +76,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[Alias(CimBaseCommand.AliasCimInstance)]
public CimInstance InputObject
{
get { return CimInstance; }
get
{
return CimInstance;
}
set
{
@ -118,7 +121,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[Parameter]
public Uri ResourceUri
{
get { return resourceUri; }
get
{
return resourceUri;
}
set
{
@ -146,7 +152,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
public string[] ComputerName
{
get { return computerName; }
get
{
return computerName;
}
set
{
@ -168,7 +177,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
public Microsoft.Management.Infrastructure.CimSession[] CimSession
{
get { return cimSession; }
get
{
return cimSession;
}
set
{

View file

@ -92,7 +92,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
public CimSession[] CimSession
{
get { return cimSession; }
get
{
return cimSession;
}
set
{
@ -118,7 +121,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
public string[] ComputerName
{
get { return computerName; }
get
{
return computerName;
}
set
{

View file

@ -63,7 +63,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
public CimSession[] CimSession
{
get { return cimSession; }
get
{
return cimSession;
}
set
{
@ -90,7 +93,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
ParameterSetName = CimBaseCommand.ClassNameComputerSet)]
public string ClassName
{
get { return className; }
get
{
return className;
}
set
{
@ -125,7 +131,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
ParameterSetName = CimBaseCommand.QuerySessionSet)]
public Uri ResourceUri
{
get { return resourceUri; }
get
{
return resourceUri;
}
set
{
@ -161,7 +170,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
public string[] ComputerName
{
get { return computerName; }
get
{
return computerName;
}
set
{
@ -185,7 +197,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[Parameter(ParameterSetName = CimBaseCommand.ResourceUriSessionSet)]
public SwitchParameter KeyOnly
{
get { return keyOnly; }
get
{
return keyOnly;
}
set
{
@ -220,7 +235,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
ParameterSetName = CimBaseCommand.QuerySessionSet)]
public string Namespace
{
get { return nameSpace; }
get
{
return nameSpace;
}
set
{
@ -270,7 +288,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[Alias(CimBaseCommand.AliasCimInstance)]
public CimInstance InputObject
{
get { return CimInstance; }
get
{
return CimInstance;
}
set
{
@ -297,7 +318,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
ParameterSetName = CimBaseCommand.QuerySessionSet)]
public string Query
{
get { return query; }
get
{
return query;
}
set
{
@ -326,7 +350,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
public string QueryDialect
{
get { return queryDialect; }
get
{
return queryDialect;
}
set
{
@ -354,7 +381,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[Parameter(ParameterSetName = CimBaseCommand.QuerySessionSet)]
public SwitchParameter Shallow
{
get { return shallow; }
get
{
return shallow;
}
set
{
@ -381,7 +411,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
ParameterSetName = CimBaseCommand.ResourceUriComputerSet)]
public string Filter
{
get { return filter; }
get
{
return filter;
}
set
{
@ -410,7 +443,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[Alias("SelectProperties")]
public string[] Property
{
get { return SelectProperties; }
get
{
return SelectProperties;
}
set
{

View file

@ -58,7 +58,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
public string[] ComputerName
{
get { return computername; }
get
{
return computername;
}
set
{
@ -80,7 +83,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
public UInt32[] Id
{
get { return id; }
get
{
return id;
}
set
{
@ -101,7 +107,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
public Guid[] InstanceId
{
get { return instanceid; }
get
{
return instanceid;
}
set
{
@ -123,7 +132,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
public string[] Name
{
get { return name; }
get
{
return name;
}
set
{

View file

@ -54,7 +54,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[Alias("Class")]
public string ClassName
{
get { return className; }
get
{
return className;
}
set
{
@ -83,7 +86,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
ParameterSetName = CimBaseCommand.ResourceUriSessionSet)]
public Uri ResourceUri
{
get { return resourceUri; }
get
{
return resourceUri;
}
set
{
@ -108,7 +114,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
ParameterSetName = CimClassSessionSet)]
public CimClass CimClass
{
get { return cimClass; }
get
{
return cimClass;
}
set
{
@ -131,7 +140,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
ParameterSetName = CimBaseCommand.QuerySessionSet)]
public string Query
{
get { return query; }
get
{
return query;
}
set
{
@ -155,7 +167,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
ParameterSetName = CimBaseCommand.QuerySessionSet)]
public string QueryDialect
{
get { return queryDialect; }
get
{
return queryDialect;
}
set
{
@ -182,7 +197,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[Alias(CimBaseCommand.AliasCimInstance)]
public CimInstance InputObject
{
get { return CimInstance; }
get
{
return CimInstance;
}
set
{
@ -224,7 +242,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
public string[] ComputerName
{
get { return computerName; }
get
{
return computerName;
}
set
{
@ -264,7 +285,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
public CimSession[] CimSession
{
get { return cimSession; }
get
{
return cimSession;
}
set
{
@ -294,7 +318,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[Alias("Name")]
public string MethodName
{
get { return methodName; }
get
{
return methodName;
}
set
{
@ -325,7 +352,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
ParameterSetName = CimBaseCommand.ResourceUriSessionSet)]
public string Namespace
{
get { return nameSpace; }
get
{
return nameSpace;
}
set
{

View file

@ -57,7 +57,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
ParameterSetName = CimBaseCommand.ClassNameComputerSet)]
public string ClassName
{
get { return className; }
get
{
return className;
}
set
{
@ -82,7 +85,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
ParameterSetName = CimBaseCommand.ResourceUriComputerSet)]
public Uri ResourceUri
{
get { return resourceUri; }
get
{
return resourceUri;
}
set
{
@ -117,7 +123,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
public string[] Key
{
get { return key; }
get
{
return key;
}
set
{
@ -144,7 +153,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
ParameterSetName = CimClassComputerSet)]
public CimClass CimClass
{
get { return cimClass; }
get
{
return cimClass;
}
set
{
@ -190,7 +202,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
ParameterSetName = CimBaseCommand.ResourceUriComputerSet)]
public string Namespace
{
get { return nameSpace; }
get
{
return nameSpace;
}
set
{
@ -231,7 +246,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
public CimSession[] CimSession
{
get { return cimSession; }
get
{
return cimSession;
}
set
{
@ -263,7 +281,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
public string[] ComputerName
{
get { return computerName; }
get
{
return computerName;
}
set
{
@ -291,7 +312,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
ParameterSetName = CimBaseCommand.CimClassSessionSet)]
public SwitchParameter ClientOnly
{
get { return clientOnly; }
get
{
return clientOnly;
}
set
{

View file

@ -33,7 +33,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
ParameterSetName = CredentialParameterSet)]
public PasswordAuthenticationMechanism Authentication
{
get { return authentication; }
get
{
return authentication;
}
set
{
@ -103,7 +106,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[Parameter(ValueFromPipelineByPropertyName = true)]
public UInt32 OperationTimeoutSec
{
get { return operationTimeout; }
get
{
return operationTimeout;
}
set
{
@ -132,7 +138,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[Parameter(ValueFromPipelineByPropertyName = true)]
public UInt32 Port
{
get { return port; }
get
{
return port;
}
set
{

View file

@ -64,7 +64,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[Parameter(ParameterSetName = WSManParameterSet)]
public SwitchParameter NoEncryption
{
get { return noEncryption; }
get
{
return noEncryption;
}
set
{
@ -85,7 +88,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
ParameterSetName = WSManParameterSet)]
public SwitchParameter SkipCACheck
{
get { return skipCACheck; }
get
{
return skipCACheck;
}
set
{
@ -106,7 +112,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
ParameterSetName = WSManParameterSet)]
public SwitchParameter SkipCNCheck
{
get { return skipCNCheck; }
get
{
return skipCNCheck;
}
set
{
@ -127,7 +136,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
ParameterSetName = WSManParameterSet)]
public SwitchParameter SkipRevocationCheck
{
get { return skipRevocationCheck; }
get
{
return skipRevocationCheck;
}
set
{
@ -148,7 +160,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
ParameterSetName = WSManParameterSet)]
public SwitchParameter EncodePortInServicePrincipalName
{
get { return encodeportinserviceprincipalname; }
get
{
return encodeportinserviceprincipalname;
}
set
{
@ -171,7 +186,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
ParameterSetName = WSManParameterSet)]
public PacketEncoding Encoding
{
get { return encoding; }
get
{
return encoding;
}
set
{
@ -193,7 +211,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
ParameterSetName = WSManParameterSet)]
public Uri HttpPrefix
{
get { return httpprefix; }
get
{
return httpprefix;
}
set
{
@ -212,7 +233,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
ParameterSetName = WSManParameterSet)]
public UInt32 MaxEnvelopeSizeKB
{
get { return maxenvelopesizekb; }
get
{
return maxenvelopesizekb;
}
set
{
@ -233,7 +257,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
ParameterSetName = WSManParameterSet)]
public PasswordAuthenticationMechanism ProxyAuthentication
{
get { return proxyAuthentication; }
get
{
return proxyAuthentication;
}
set
{
@ -253,7 +280,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
ParameterSetName = WSManParameterSet)]
public string ProxyCertificateThumbprint
{
get { return proxycertificatethumbprint; }
get
{
return proxycertificatethumbprint;
}
set
{
@ -272,7 +302,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[Credential()]
public PSCredential ProxyCredential
{
get { return proxycredential; }
get
{
return proxycredential;
}
set
{
@ -292,7 +325,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
ParameterSetName = WSManParameterSet)]
public ProxyType ProxyType
{
get { return proxytype; }
get
{
return proxytype;
}
set
{
@ -313,7 +349,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
ParameterSetName = WSManParameterSet)]
public SwitchParameter UseSsl
{
get { return usessl; }
get
{
return usessl;
}
set
{
@ -334,7 +373,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[Parameter(ParameterSetName = DcomParameterSet)]
public ImpersonationType Impersonation
{
get { return impersonation; }
get
{
return impersonation;
}
set
{
@ -355,7 +397,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[Parameter(ParameterSetName = DcomParameterSet)]
public SwitchParameter PacketIntegrity
{
get { return packetintegrity; }
get
{
return packetintegrity;
}
set
{
@ -376,7 +421,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[Parameter(ParameterSetName = DcomParameterSet)]
public SwitchParameter PacketPrivacy
{
get { return packetprivacy; }
get
{
return packetprivacy;
}
set
{
@ -400,7 +448,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
ParameterSetName = ProtocolNameParameterSet)]
public ProtocolType Protocol
{
get { return protocol; }
get
{
return protocol;
}
set
{

View file

@ -50,7 +50,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
ParameterSetName = CimBaseCommand.ClassNameComputerSet)]
public string ClassName
{
get { return className; }
get
{
return className;
}
set
{
@ -75,7 +78,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
ParameterSetName = CimBaseCommand.QueryExpressionComputerSet)]
public string Query
{
get { return query; }
get
{
return query;
}
set
{
@ -97,7 +103,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[Parameter(ParameterSetName = CimBaseCommand.QueryExpressionSessionSet)]
public string QueryDialect
{
get { return queryDialect; }
get
{
return queryDialect;
}
set
{
@ -129,7 +138,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
ParameterSetName = CimBaseCommand.ClassNameSessionSet)]
public CimSession CimSession
{
get { return cimSession; }
get
{
return cimSession;
}
set
{
@ -150,7 +162,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[Parameter(ParameterSetName = CimBaseCommand.ClassNameComputerSet)]
public string ComputerName
{
get { return computername; }
get
{
return computername;
}
set
{

View file

@ -53,7 +53,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
public CimSession[] CimSession
{
get { return cimSession; }
get
{
return cimSession;
}
set
{
@ -76,7 +79,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
ParameterSetName = CimBaseCommand.CimInstanceSessionSet)]
public Uri ResourceUri
{
get { return resourceUri; }
get
{
return resourceUri;
}
set
{
@ -99,7 +105,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
public string[] ComputerName
{
get { return computername; }
get
{
return computername;
}
set
{
@ -124,7 +133,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
ParameterSetName = CimBaseCommand.QueryComputerSet)]
public string Namespace
{
get { return nameSpace; }
get
{
return nameSpace;
}
set
{
@ -161,7 +173,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[Alias(CimBaseCommand.AliasCimInstance)]
public CimInstance InputObject
{
get { return CimInstance; }
get
{
return CimInstance;
}
set
{
@ -190,7 +205,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
ParameterSetName = CimBaseCommand.QuerySessionSet)]
public string Query
{
get { return query; }
get
{
return query;
}
set
{
@ -212,7 +230,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
ParameterSetName = CimBaseCommand.QueryComputerSet)]
public string QueryDialect
{
get { return querydialect; }
get
{
return querydialect;
}
set
{

View file

@ -54,7 +54,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
public CimSession[] CimSession
{
get { return cimsession; }
get
{
return cimsession;
}
set
{
@ -81,7 +84,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
public string[] ComputerName
{
get { return computername; }
get
{
return computername;
}
set
{
@ -104,7 +110,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
public UInt32[] Id
{
get { return id; }
get
{
return id;
}
set
{
@ -127,7 +136,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
public Guid[] InstanceId
{
get { return instanceid; }
get
{
return instanceid;
}
set
{
@ -150,7 +162,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
public string[] Name
{
get { return name; }
get
{
return name;
}
set
{

View file

@ -54,7 +54,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
public CimSession[] CimSession
{
get { return cimSession; }
get
{
return cimSession;
}
set
{
@ -77,7 +80,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
public string[] ComputerName
{
get { return computername; }
get
{
return computername;
}
set
{
@ -100,7 +106,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
ParameterSetName = CimBaseCommand.CimInstanceSessionSet)]
public Uri ResourceUri
{
get { return resourceUri; }
get
{
return resourceUri;
}
set
{
@ -121,7 +130,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
ParameterSetName = CimBaseCommand.QueryComputerSet)]
public string Namespace
{
get { return nameSpace; }
get
{
return nameSpace;
}
set
{
@ -158,7 +170,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[Alias(CimBaseCommand.AliasCimInstance)]
public CimInstance InputObject
{
get { return CimInstance; }
get
{
return CimInstance;
}
set
{
@ -187,7 +202,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
ParameterSetName = CimBaseCommand.QuerySessionSet)]
public string Query
{
get { return query; }
get
{
return query;
}
set
{
@ -209,7 +227,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
ParameterSetName = CimBaseCommand.QueryComputerSet)]
public string QueryDialect
{
get { return querydialect; }
get
{
return querydialect;
}
set
{
@ -244,7 +265,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[Alias("Arguments")]
public IDictionary Property
{
get { return property; }
get
{
return property;
}
set
{

View file

@ -55,7 +55,10 @@ namespace Microsoft.PowerShell.Commands
Justification = "A string[] is required here because that is the type Powershell supports")]
public string[] Counter
{
get { return _counter; }
get
{
return _counter;
}
set
{
@ -100,7 +103,10 @@ namespace Microsoft.PowerShell.Commands
[ValidateRange((Int64)1, Int64.MaxValue)]
public Int64 MaxSamples
{
get { return _maxSamples; }
get
{
return _maxSamples;
}
set
{

View file

@ -75,7 +75,10 @@ namespace Microsoft.PowerShell.Cmdletization
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
protected TSession[] Session
{
get { return _session ??= new TSession[] { this.DefaultSession }; }
get
{
return _session ??= new TSession[] { this.DefaultSession };
}
set
{

View file

@ -233,7 +233,10 @@ namespace Microsoft.PowerShell.Commands
[ValidateRange(-1, int.MaxValue)]
public int Timeout
{
get { return _timeout; }
get
{
return _timeout;
}
set
{
@ -252,7 +255,10 @@ namespace Microsoft.PowerShell.Commands
[Parameter(ParameterSetName = DefaultParameterSet)]
public WaitForServiceTypes For
{
get { return _waitFor; }
get
{
return _waitFor;
}
set
{
@ -272,7 +278,10 @@ namespace Microsoft.PowerShell.Commands
[ValidateRange(1, Int16.MaxValue)]
public Int16 Delay
{
get { return (Int16)_delay; }
get
{
return (Int16)_delay;
}
set
{

View file

@ -34,7 +34,10 @@ namespace Microsoft.PowerShell.Commands
[Alias("PSPath", "LP")]
public string[] LiteralPath
{
get { return Path; }
get
{
return Path;
}
set
{

View file

@ -34,7 +34,10 @@ namespace Microsoft.PowerShell.Commands
[Alias("PSPath", "LP")]
public string[] LiteralPath
{
get { return paths; }
get
{
return paths;
}
set
{

View file

@ -23,7 +23,10 @@ namespace Microsoft.PowerShell.Commands
[Parameter]
public SwitchParameter Raw
{
get { return _raw; }
get
{
return _raw;
}
set
{

View file

@ -59,7 +59,10 @@ namespace Microsoft.PowerShell.Commands
[Alias("Last")]
public int Tail
{
get { return _backCount; }
get
{
return _backCount;
}
set
{

View file

@ -35,7 +35,10 @@ namespace Microsoft.PowerShell.Commands
[Alias("PSPath", "LP")]
public string[] LiteralPath
{
get { return paths; }
get
{
return paths;
}
set
{
@ -51,7 +54,10 @@ namespace Microsoft.PowerShell.Commands
[Alias("PSProperty")]
public string[] Name
{
get { return _property; }
get
{
return _property;
}
set
{

View file

@ -62,7 +62,10 @@ namespace Microsoft.PowerShell.Commands
[AllowEmptyString]
public string[] LiteralPath
{
get { return _paths; }
get
{
return _paths;
}
set
{

View file

@ -476,7 +476,10 @@ namespace Microsoft.PowerShell.Commands
[ValidateNotNullOrEmpty]
public string[] Name
{
get { return processNames; }
get
{
return processNames;
}
set
{
@ -878,7 +881,10 @@ namespace Microsoft.PowerShell.Commands
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
public string[] Name
{
get { return processNames; }
get
{
return processNames;
}
set
{
@ -1472,7 +1478,10 @@ namespace Microsoft.PowerShell.Commands
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
public string[] Name
{
get { return processNames; }
get
{
return processNames;
}
set
{
@ -1635,7 +1644,10 @@ namespace Microsoft.PowerShell.Commands
[Credential]
public PSCredential Credential
{
get { return _credential; }
get
{
return _credential;
}
set
{
@ -1660,7 +1672,10 @@ namespace Microsoft.PowerShell.Commands
[Alias("Lup")]
public SwitchParameter LoadUserProfile
{
get { return _loaduserprofile; }
get
{
return _loaduserprofile;
}
set
{
@ -1678,7 +1693,10 @@ namespace Microsoft.PowerShell.Commands
[Alias("nnw")]
public SwitchParameter NoNewWindow
{
get { return _nonewwindow; }
get
{
return _nonewwindow;
}
set
{
@ -1703,7 +1721,10 @@ namespace Microsoft.PowerShell.Commands
[ValidateNotNullOrEmpty]
public string RedirectStandardError
{
get { return _redirectstandarderror; }
get
{
return _redirectstandarderror;
}
set
{
@ -1722,7 +1743,10 @@ namespace Microsoft.PowerShell.Commands
[ValidateNotNullOrEmpty]
public string RedirectStandardInput
{
get { return _redirectstandardinput; }
get
{
return _redirectstandardinput;
}
set
{
@ -1741,7 +1765,10 @@ namespace Microsoft.PowerShell.Commands
[ValidateNotNullOrEmpty]
public string RedirectStandardOutput
{
get { return _redirectstandardoutput; }
get
{
return _redirectstandardoutput;
}
set
{
@ -1769,7 +1796,10 @@ namespace Microsoft.PowerShell.Commands
[ValidateNotNullOrEmpty]
public ProcessWindowStyle WindowStyle
{
get { return _windowstyle; }
get
{
return _windowstyle;
}
set
{
@ -1793,7 +1823,10 @@ namespace Microsoft.PowerShell.Commands
[Parameter(ParameterSetName = "Default")]
public SwitchParameter UseNewEnvironment
{
get { return _UseNewEnvironment; }
get
{
return _UseNewEnvironment;
}
set
{

View file

@ -1495,7 +1495,10 @@ namespace Microsoft.PowerShell.Commands
[Alias("ServiceName", "SN")]
public new string Name
{
get { return serviceName; }
get
{
return serviceName;
}
set
{
@ -1523,7 +1526,10 @@ namespace Microsoft.PowerShell.Commands
[Alias("DN")]
public new string DisplayName
{
get { return displayName; }
get
{
return displayName;
}
set
{
@ -1552,7 +1558,10 @@ namespace Microsoft.PowerShell.Commands
[ValidateNotNullOrEmpty]
public string Description
{
get { return description; }
get
{
return description;
}
set
{
@ -1575,7 +1584,10 @@ namespace Microsoft.PowerShell.Commands
[ValidateNotNullOrEmpty]
public ServiceStartupType StartupType
{
get { return startupType; }
get
{
return startupType;
}
set
{
@ -1611,7 +1623,10 @@ namespace Microsoft.PowerShell.Commands
[ValidateSetAttribute(new string[] { "Running", "Stopped", "Paused" })]
public string Status
{
get { return serviceStatus; }
get
{
return serviceStatus;
}
set
{

View file

@ -43,7 +43,10 @@ namespace Microsoft.PowerShell.Commands
[Alias("PSPath", "LP")]
public string[] LiteralPath
{
get { return paths; }
get
{
return paths;
}
set
{

View file

@ -292,7 +292,10 @@ namespace Microsoft.PowerShell.Commands
[Alias("RA")]
public string[] ReferencedAssemblies
{
get { return _referencedAssemblies; }
get
{
return _referencedAssemblies;
}
set
{

View file

@ -72,7 +72,10 @@ namespace Microsoft.PowerShell.Commands
[Parameter]
public SwitchParameter IncludeEqual
{
get { return _includeEqual; }
get
{
return _includeEqual;
}
set
{

View file

@ -31,7 +31,10 @@ namespace Microsoft.PowerShell.Commands
[Parameter]
public AccessRightTypeNames Type
{
get { return _type; }
get
{
return _type;
}
set
{

View file

@ -55,7 +55,10 @@ namespace Microsoft.PowerShell.Commands
[Alias("PSPath", "LP")]
public string LiteralPath
{
get { return _path; }
get
{
return _path;
}
set
{

View file

@ -54,7 +54,10 @@ namespace Microsoft.PowerShell.Commands
return false;
}
set { _autosize = value; }
set
{
_autosize = value;
}
}
private bool? _autosize = null;
@ -74,7 +77,10 @@ namespace Microsoft.PowerShell.Commands
return -1;
}
set { _column = value; }
set
{
_column = value;
}
}
private int? _column = null;

View file

@ -57,7 +57,10 @@ namespace Microsoft.PowerShell.Commands
[System.Diagnostics.CodeAnalysis.SuppressMessage("GoldMan", "#pw17903:UseOfLCID", Justification = "The CultureNumber is only used if the property has been set with a hex string starting with 0x")]
public string Culture
{
get { return _cultureInfo?.ToString(); }
get
{
return _cultureInfo?.ToString();
}
set
{

View file

@ -50,7 +50,10 @@ namespace Microsoft.PowerShell.Commands
System.Management.Automation.Runspaces.TypeData.CodeMethod, IgnoreCase = true)]
public PSMemberTypes MemberType
{
get { return _memberType; }
get
{
return _memberType;
}
set
{

View file

@ -836,7 +836,10 @@ namespace Microsoft.PowerShell.Commands
[Alias("PSPath", "LP")]
public string[] LiteralPath
{
get { return Path; }
get
{
return Path;
}
set
{

View file

@ -34,7 +34,10 @@ namespace Microsoft.PowerShell.Commands
[Parameter(Position = 1, ValueFromPipelineByPropertyName = true, ParameterSetName = "optionsSet")]
public PSTraceSourceOptions Option
{
get { return base.OptionsInternal; }
get
{
return base.OptionsInternal;
}
set
{
@ -48,7 +51,10 @@ namespace Microsoft.PowerShell.Commands
[Parameter(ParameterSetName = "optionsSet")]
public TraceOptions ListenerOption
{
get { return base.ListenerOptionsInternal; }
get
{
return base.ListenerOptionsInternal;
}
set
{

View file

@ -46,7 +46,10 @@ namespace Microsoft.PowerShell.Commands
[Parameter(Position = 2)]
public PSTraceSourceOptions Option
{
get { return base.OptionsInternal; }
get
{
return base.OptionsInternal;
}
set
{
@ -82,7 +85,10 @@ namespace Microsoft.PowerShell.Commands
[Parameter]
public TraceOptions ListenerOption
{
get { return base.ListenerOptionsInternal; }
get
{
return base.ListenerOptionsInternal;
}
set
{

View file

@ -32,7 +32,10 @@ namespace Microsoft.PowerShell.Commands
/// <value></value>
internal PSTraceSourceOptions OptionsInternal
{
get { return _options; }
get
{
return _options;
}
set
{
@ -53,7 +56,10 @@ namespace Microsoft.PowerShell.Commands
/// </summary>
internal TraceOptions ListenerOptionsInternal
{
get { return _traceOptions; }
get
{
return _traceOptions;
}
set
{

View file

@ -1369,7 +1369,10 @@ namespace Microsoft.PowerShell
: new Size(Console.BufferWidth, Console.BufferHeight);
}
set { Console.SetBufferSize(value.Width, value.Height); }
set
{
Console.SetBufferSize(value.Width, value.Height);
}
}
/// <summary>
@ -1377,7 +1380,10 @@ namespace Microsoft.PowerShell
/// </summary>
public override Coordinates CursorPosition
{
get { return new Coordinates(Console.CursorLeft, Console.CursorTop); }
get
{
return new Coordinates(Console.CursorLeft, Console.CursorTop);
}
set
{
@ -1475,7 +1481,10 @@ namespace Microsoft.PowerShell
: new Size(Console.WindowWidth, Console.WindowHeight);
}
set { Console.SetWindowSize(value.Width, value.Height); }
set
{
Console.SetWindowSize(value.Width, value.Height);
}
}
/// <summary>

View file

@ -104,7 +104,10 @@ namespace Microsoft.PowerShell.Commands
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
public byte[] Content
{
get { return _content; }
get
{
return _content;
}
set
{

View file

@ -68,7 +68,10 @@ namespace Microsoft.WSMan.Management
[Alias("cn")]
public string ComputerName
{
get { return computername; }
get
{
return computername;
}
set
{

View file

@ -60,7 +60,10 @@ namespace Microsoft.WSMan.Management
[ValidateNotNullOrEmpty]
public ProxyAuthentication ProxyAuthentication
{
get { return proxyauthentication; }
get
{
return proxyauthentication;
}
set
{
@ -78,7 +81,10 @@ namespace Microsoft.WSMan.Management
[Credential]
public PSCredential ProxyCredential
{
get { return _proxycredential; }
get
{
return _proxycredential;
}
set
{
@ -99,7 +105,10 @@ namespace Microsoft.WSMan.Management
[Parameter]
public SwitchParameter SkipCACheck
{
get { return skipcacheck; }
get
{
return skipcacheck;
}
set
{
@ -118,7 +127,10 @@ namespace Microsoft.WSMan.Management
[Parameter]
public SwitchParameter SkipCNCheck
{
get { return skipcncheck; }
get
{
return skipcncheck;
}
set
{
@ -137,7 +149,10 @@ namespace Microsoft.WSMan.Management
[Parameter]
public SwitchParameter SkipRevocationCheck
{
get { return skiprevocationcheck; }
get
{
return skiprevocationcheck;
}
set
{
@ -158,7 +173,10 @@ namespace Microsoft.WSMan.Management
[ValidateRange(0, Int32.MaxValue)]
public Int32 SPNPort
{
get { return spnport; }
get
{
return spnport;
}
set
{
@ -177,7 +195,10 @@ namespace Microsoft.WSMan.Management
[ValidateRange(0, Int32.MaxValue)]
public Int32 OperationTimeout
{
get { return operationtimeout; }
get
{
return operationtimeout;
}
set
{
@ -196,7 +217,10 @@ namespace Microsoft.WSMan.Management
[Parameter]
public SwitchParameter NoEncryption
{
get { return noencryption; }
get
{
return noencryption;
}
set
{
@ -215,7 +239,10 @@ namespace Microsoft.WSMan.Management
[SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "UTF")]
public SwitchParameter UseUTF16
{
get { return useutf16; }
get
{
return useutf16;
}
set
{

View file

@ -35,7 +35,10 @@ namespace Microsoft.WSMan.Management
[Alias("cn")]
public string ComputerName
{
get { return computername; }
get
{
return computername;
}
set
{
@ -72,7 +75,10 @@ namespace Microsoft.WSMan.Management
[Alias("auth", "am")]
public override AuthenticationMechanism Authentication
{
get { return authentication; }
get
{
return authentication;
}
set
{

View file

@ -38,7 +38,10 @@ namespace Microsoft.WSMan.Management
[Alias("cred", "c")]
public virtual PSCredential Credential
{
get { return credential; }
get
{
return credential;
}
set
{
@ -69,7 +72,10 @@ namespace Microsoft.WSMan.Management
[Alias("auth", "am")]
public virtual AuthenticationMechanism Authentication
{
get { return authentication; }
get
{
return authentication;
}
set
{
@ -88,7 +94,10 @@ namespace Microsoft.WSMan.Management
[ValidateNotNullOrEmpty]
public virtual string CertificateThumbprint
{
get { return thumbPrint; }
get
{
return thumbPrint;
}
set
{
@ -144,7 +153,10 @@ namespace Microsoft.WSMan.Management
[Alias("cn")]
public string ComputerName
{
get { return computername; }
get
{
return computername;
}
set
{
@ -300,7 +312,10 @@ namespace Microsoft.WSMan.Management
[Parameter(Position = 0)]
public string ComputerName
{
get { return computername; }
get
{
return computername;
}
set
{

View file

@ -40,7 +40,10 @@ namespace Microsoft.WSMan.Management
[Parameter(ParameterSetName = "Enumerate")]
public string ApplicationName
{
get { return applicationname; }
get
{
return applicationname;
}
set
{
@ -60,7 +63,10 @@ namespace Microsoft.WSMan.Management
[Alias("UBPO", "Base")]
public SwitchParameter BasePropertiesOnly
{
get { return basepropertiesonly; }
get
{
return basepropertiesonly;
}
set
{
@ -81,7 +87,10 @@ namespace Microsoft.WSMan.Management
[Alias("CN")]
public string ComputerName
{
get { return computername; }
get
{
return computername;
}
set
{
@ -109,7 +118,10 @@ namespace Microsoft.WSMan.Management
[SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "URI")]
public Uri ConnectionURI
{
get { return connectionuri; }
get
{
return connectionuri;
}
set
{
@ -126,7 +138,10 @@ namespace Microsoft.WSMan.Management
[Parameter]
public Uri Dialect
{
get { return dialect; }
get
{
return dialect;
}
set
{
@ -145,7 +160,10 @@ namespace Microsoft.WSMan.Management
ParameterSetName = "Enumerate")]
public SwitchParameter Enumerate
{
get { return enumerate; }
get
{
return enumerate;
}
set
{
@ -163,7 +181,10 @@ namespace Microsoft.WSMan.Management
[ValidateNotNullOrEmpty]
public string Filter
{
get { return filter; }
get
{
return filter;
}
set
{
@ -182,7 +203,10 @@ namespace Microsoft.WSMan.Management
[ValidateNotNullOrEmpty]
public string Fragment
{
get { return fragment; }
get
{
return fragment;
}
set
{
@ -204,7 +228,10 @@ namespace Microsoft.WSMan.Management
[SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public Hashtable OptionSet
{
get { return optionset; }
get
{
return optionset;
}
set
{
@ -222,7 +249,10 @@ namespace Microsoft.WSMan.Management
[Parameter(ParameterSetName = "GetInstance")]
public Int32 Port
{
get { return port; }
get
{
return port;
}
set
{
@ -241,7 +271,10 @@ namespace Microsoft.WSMan.Management
[Parameter(ParameterSetName = "Enumerate")]
public SwitchParameter Associations
{
get { return associations; }
get
{
return associations;
}
set
{
@ -264,7 +297,10 @@ namespace Microsoft.WSMan.Management
[Alias("RURI")]
public Uri ResourceURI
{
get { return resourceuri; }
get
{
return resourceuri;
}
set
{
@ -293,7 +329,10 @@ namespace Microsoft.WSMan.Management
[Alias("RT")]
public string ReturnType
{
get { return returntype; }
get
{
return returntype;
}
set
{
@ -315,7 +354,10 @@ namespace Microsoft.WSMan.Management
[SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public Hashtable SelectorSet
{
get { return selectorset; }
get
{
return selectorset;
}
set
{
@ -336,7 +378,10 @@ namespace Microsoft.WSMan.Management
[SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public SessionOption SessionOption
{
get { return sessionoption; }
get
{
return sessionoption;
}
set
{
@ -356,7 +401,10 @@ namespace Microsoft.WSMan.Management
public SwitchParameter Shallow
{
get { return shallow; }
get
{
return shallow;
}
set
{
@ -379,7 +427,10 @@ namespace Microsoft.WSMan.Management
[Alias("SSL")]
public SwitchParameter UseSSL
{
get { return usessl; }
get
{
return usessl;
}
set
{
@ -662,7 +713,10 @@ namespace Microsoft.WSMan.Management
[Alias("cn")]
public string ComputerName
{
get { return computername; }
get
{
return computername;
}
set
{
@ -1032,7 +1086,10 @@ namespace Microsoft.WSMan.Management
[Alias("cn")]
public string ComputerName
{
get { return computername; }
get
{
return computername;
}
set
{
@ -1294,7 +1351,10 @@ namespace Microsoft.WSMan.Management
[Alias("cn")]
public string ComputerName
{
get { return computername; }
get
{
return computername;
}
set
{

View file

@ -576,7 +576,10 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
return false;
}
set { showErrorsAsMessages = value; }
set
{
showErrorsAsMessages = value;
}
}
internal bool? showErrorsAsMessages = null;
@ -595,7 +598,10 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
return false;
}
set { showErrorsInFormattedOutput = value; }
set
{
showErrorsInFormattedOutput = value;
}
}
internal bool? showErrorsInFormattedOutput = null;
@ -792,7 +798,10 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
return false;
}
set { _autosize = value; }
set
{
_autosize = value;
}
}
private bool? _autosize = null;
@ -817,7 +826,10 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
return false;
}
set { _hideHeaders = value; }
set
{
_hideHeaders = value;
}
}
private bool? _hideHeaders = null;
@ -836,7 +848,10 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
return false;
}
set { _multiLine = value; }
set
{
_multiLine = value;
}
}
private bool? _multiLine = null;

View file

@ -113,7 +113,10 @@ namespace System.Management.Automation
return _context.EngineSessionState.CheckApplicationVisibility(Path);
}
set { throw PSTraceSource.NewNotImplementedException(); }
set
{
throw PSTraceSource.NewNotImplementedException();
}
}
/// <summary>

View file

@ -326,7 +326,10 @@ namespace System.Management.Automation
/// </summary>
public bool SupportsTransactions
{
get { return _supportsTransactions; }
get
{
return _supportsTransactions;
}
set
{

View file

@ -89,7 +89,10 @@ namespace System.Management.Automation.Internal
/// </summary>
internal PSObject CurrentPipelineObject
{
get { return currentObjectInPipeline; }
get
{
return currentObjectInPipeline;
}
set
{
@ -155,7 +158,10 @@ namespace System.Management.Automation.Internal
/// </exception>
internal ExecutionContext Context
{
get { return _context; }
get
{
return _context;
}
set
{

View file

@ -1301,7 +1301,10 @@ namespace System.Management.Automation
private int ReplacementIndex
{
get { return _replacementIndex; }
get
{
return _replacementIndex;
}
set
{

View file

@ -728,7 +728,10 @@ namespace System.Management.Automation.Language
/// </summary>
public object ConstantValue
{
get { return _constantValue; }
get
{
return _constantValue;
}
internal set
{
@ -745,7 +748,10 @@ namespace System.Management.Automation.Language
/// </summary>
public CommandElementAst Value
{
get { return _value; }
get
{
return _value;
}
internal set
{

View file

@ -65,7 +65,10 @@ namespace System.Management.Automation
/// </summary>
public ScriptBlock CommandScriptBlock
{
get { return _scriptBlock; }
get
{
return _scriptBlock;
}
set
{

View file

@ -230,7 +230,10 @@ namespace System.Management.Automation
/// </summary>
internal ExecutionContext Context
{
get { return _context; }
get
{
return _context;
}
set
{

View file

@ -464,7 +464,10 @@ namespace System.Management.Automation
/// </summary>
public string DefaultParameterSetName
{
get { return _defaultParameterSetName; }
get
{
return _defaultParameterSetName;
}
set
{
@ -528,7 +531,10 @@ namespace System.Management.Automation
return _remotingCapability;
}
set { _remotingCapability = value; }
set
{
_remotingCapability = value;
}
}
private RemotingCapability _remotingCapability = RemotingCapability.PowerShell;

View file

@ -121,7 +121,10 @@ namespace System.Management.Automation
/// </summary>
internal InternalCommand Command
{
get { return _command; }
get
{
return _command;
}
set
{

View file

@ -769,7 +769,10 @@ namespace System.Management.Automation
/// </remarks>
public string RecommendedAction
{
get { return ErrorRecord.NotNull(_recommendedAction); }
get
{
return ErrorRecord.NotNull(_recommendedAction);
}
set
{

View file

@ -83,7 +83,10 @@ namespace System.Management.Automation
return IgnoreScriptDebug ? 0 : _debugTraceLevel;
}
set { _debugTraceLevel = value; }
set
{
_debugTraceLevel = value;
}
}
private int _debugTraceLevel;
@ -100,7 +103,10 @@ namespace System.Management.Automation
return !IgnoreScriptDebug && _debugTraceStep;
}
set { _debugTraceStep = value; }
set
{
_debugTraceStep = value;
}
}
private bool _debugTraceStep;

View file

@ -193,7 +193,10 @@ namespace System.Management.Automation
return Context.EngineSessionState.CheckScriptVisibility(_path);
}
set { throw PSTraceSource.NewNotImplementedException(); }
set
{
throw PSTraceSource.NewNotImplementedException();
}
}
/// <summary>

View file

@ -280,7 +280,10 @@ namespace Microsoft.PowerShell.Commands
[ValidateNotNullOrEmpty]
public string[] ParameterName
{
get { return _parameterNames; }
get
{
return _parameterNames;
}
set
{

View file

@ -109,7 +109,10 @@ namespace System.Management.Automation
return _user;
}
set { _user = value; }
set
{
_user = value;
}
}
private string _user;
@ -143,7 +146,10 @@ namespace System.Management.Automation
return this._processId.Value;
}
set { _processId = value; }
set
{
_processId = value;
}
}
private uint? _processId;

View file

@ -204,7 +204,10 @@ namespace System.Management.Automation
return _boundParameters ??= new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase);
}
internal set { _boundParameters = value; }
internal set
{
_boundParameters = value;
}
}
/// <summary>
@ -381,7 +384,10 @@ namespace System.Management.Automation
}
}
set { _scriptPosition = value; }
set
{
_scriptPosition = value;
}
}
/// <summary>

View file

@ -28,7 +28,10 @@ namespace Microsoft.PowerShell.Commands
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays", Justification = "Cmdlets use arrays for parameters.")]
public string[] Function
{
get { return _functionList; }
get
{
return _functionList;
}
set
{
@ -57,7 +60,10 @@ namespace Microsoft.PowerShell.Commands
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays", Justification = "Cmdlets use arrays for parameters.")]
public string[] Cmdlet
{
get { return _cmdletList; }
get
{
return _cmdletList;
}
set
{
@ -86,7 +92,10 @@ namespace Microsoft.PowerShell.Commands
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays", Justification = "Cmdlets use arrays for parameters.")]
public string[] Variable
{
get { return _variableExportList; }
get
{
return _variableExportList;
}
set
{
@ -115,7 +124,10 @@ namespace Microsoft.PowerShell.Commands
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays", Justification = "Cmdlets use arrays for parameters.")]
public string[] Alias
{
get { return _aliasExportList; }
get
{
return _aliasExportList;
}
set
{

View file

@ -117,7 +117,10 @@ namespace Microsoft.PowerShell.Commands
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays", Justification = "Cmdlets use arrays for parameters.")]
public string[] Function
{
get { return _functionImportList; }
get
{
return _functionImportList;
}
set
{
@ -144,7 +147,10 @@ namespace Microsoft.PowerShell.Commands
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays", Justification = "Cmdlets use arrays for parameters.")]
public string[] Cmdlet
{
get { return _cmdletImportList; }
get
{
return _cmdletImportList;
}
set
{
@ -172,7 +178,10 @@ namespace Microsoft.PowerShell.Commands
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays", Justification = "Cmdlets use arrays for parameters.")]
public string[] Variable
{
get { return _variableExportList; }
get
{
return _variableExportList;
}
set
{
@ -199,7 +208,10 @@ namespace Microsoft.PowerShell.Commands
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays", Justification = "Cmdlets use arrays for parameters.")]
public string[] Alias
{
get { return _aliasExportList; }
get
{
return _aliasExportList;
}
set
{
@ -375,7 +387,10 @@ namespace Microsoft.PowerShell.Commands
[ValidateSet("Local", "Global")]
public string Scope
{
get { return _scope; }
get
{
return _scope;
}
set
{

View file

@ -42,7 +42,10 @@ namespace Microsoft.PowerShell.Commands
[ValidateNotNull]
public ScriptBlock ScriptBlock
{
get { return _scriptBlock; }
get
{
return _scriptBlock;
}
set
{
@ -60,7 +63,10 @@ namespace Microsoft.PowerShell.Commands
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays", Justification = "Cmdlets use arrays for parameters.")]
public string[] Function
{
get { return _functionImportList; }
get
{
return _functionImportList;
}
set
{
@ -88,7 +94,10 @@ namespace Microsoft.PowerShell.Commands
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays", Justification = "Cmdlets use arrays for parameters.")]
public string[] Cmdlet
{
get { return _cmdletImportList; }
get
{
return _cmdletImportList;
}
set
{

View file

@ -470,7 +470,10 @@ namespace System.Management.Automation
/// </summary>
public ModuleAccessMode AccessMode
{
get { return _accessMode; }
get
{
return _accessMode;
}
set
{

View file

@ -3136,7 +3136,10 @@ namespace System.Management.Automation
/// </remarks>
internal bool Verbose
{
get { return _verboseFlag; }
get
{
return _verboseFlag;
}
set
{
@ -3209,7 +3212,10 @@ namespace System.Management.Automation
/// </remarks>
internal bool Debug
{
get { return _debugFlag; }
get
{
return _debugFlag;
}
set
{

View file

@ -40,7 +40,10 @@ namespace System.Management.Automation.Internal
/// </summary>
internal CommandProcessorBase DownstreamCmdlet
{
get { return _downstreamCmdlet; }
get
{
return _downstreamCmdlet;
}
set
{
@ -76,7 +79,10 @@ namespace System.Management.Automation.Internal
/// </summary>
internal PipelineWriter ExternalWriter
{
get { return _externalWriter; }
get
{
return _externalWriter;
}
set
{
@ -108,7 +114,10 @@ namespace System.Management.Automation.Internal
/// </summary>
internal bool NullPipe
{
get { return _nullPipe; }
get
{
return _nullPipe;
}
set
{

View file

@ -116,7 +116,10 @@ namespace System.Management.Automation
/// </summary>
internal bool FunctionsExportedWithWildcard
{
get { return _functionsExportedWithWildcard; }
get
{
return _functionsExportedWithWildcard;
}
set
{

View file

@ -64,7 +64,10 @@ namespace System.Management.Automation
/// </exception>
internal SessionStateScope ScriptScope
{
get { return _scriptScope; }
get
{
return _scriptScope;
}
set
{
@ -1615,7 +1618,10 @@ namespace System.Management.Automation
return Parent != null ? Parent.TypeResolutionState : Language.TypeResolutionState.UsingSystem;
}
set { _typeResolutionState = value; }
set
{
_typeResolutionState = value;
}
}
internal IDictionary<string, Type> TypeTable { get; private set; }

View file

@ -759,7 +759,10 @@ namespace System.Management.Automation
public override ScopedItemOptions Options
{
get { return base.Options; }
get
{
return base.Options;
}
set
{

View file

@ -59,7 +59,10 @@ namespace System.Management.Automation
return _message;
}
set { _message = value; }
set
{
_message = value;
}
}
/// <summary>

View file

@ -390,7 +390,10 @@ namespace System.Management.Automation
/// </summary>
public int DataAddedCount
{
get { return _dataAddedFrequency; }
get
{
return _dataAddedFrequency;
}
set
{
@ -2028,7 +2031,10 @@ namespace System.Management.Automation
/// </summary>
internal PSDataCollection<ProgressRecord> Progress
{
get { return progress; }
get
{
return progress;
}
set
{
@ -2044,7 +2050,10 @@ namespace System.Management.Automation
/// </summary>
internal PSDataCollection<VerboseRecord> Verbose
{
get { return verbose; }
get
{
return verbose;
}
set
{
@ -2060,7 +2069,10 @@ namespace System.Management.Automation
/// </summary>
internal PSDataCollection<DebugRecord> Debug
{
get { return debug; }
get
{
return debug;
}
set
{

View file

@ -276,7 +276,10 @@ namespace System.Management.Automation.Runspaces.Internal
/// </summary>
public TimeSpan CleanupInterval
{
get { return _cleanupInterval; }
get
{
return _cleanupInterval;
}
set
{

View file

@ -35,7 +35,10 @@ namespace System.Management.Automation.Interpreter
public bool IsBoxed
{
get { return (_flags & IsBoxedFlag) != 0; }
get
{
return (_flags & IsBoxedFlag) != 0;
}
set
{

View file

@ -926,7 +926,10 @@ namespace System.Management.Automation.Language
return _memberFunctionReturnType;
}
set { _memberFunctionReturnType = value; }
set
{
_memberFunctionReturnType = value;
}
}
private Type _memberFunctionReturnType;

View file

@ -1467,7 +1467,10 @@ namespace System.Management.Automation.Internal
/// </exception>
internal PipelineReader<object> ExternalInput
{
get { return _externalInputPipe; }
get
{
return _externalInputPipe;
}
set
{
@ -1493,7 +1496,10 @@ namespace System.Management.Automation.Internal
/// </exception>
internal PipelineWriter ExternalSuccessOutput
{
get { return _externalSuccessOutput; }
get
{
return _externalSuccessOutput;
}
set
{
@ -1520,7 +1526,10 @@ namespace System.Management.Automation.Internal
/// </exception>
internal PipelineWriter ExternalErrorOutput
{
get { return _externalErrorOutput; }
get
{
return _externalErrorOutput;
}
set
{
@ -1567,7 +1576,10 @@ namespace System.Management.Automation.Internal
/// </summary>
internal SessionStateScope ExecutionScope
{
get { return _executionScope; }
get
{
return _executionScope;
}
set
{

View file

@ -670,7 +670,10 @@ namespace System.Management.Automation
/// </summary>
public string PSJobTypeName
{
get { return _jobTypeName; }
get
{
return _jobTypeName;
}
protected internal set
{
@ -2286,7 +2289,10 @@ namespace System.Management.Automation
/// </summary>
internal bool HideComputerName
{
get { return _hideComputerName; }
get
{
return _hideComputerName;
}
set
{
@ -2934,7 +2940,10 @@ namespace System.Management.Automation
/// </summary>
internal bool HideComputerName
{
get { return _hideComputerName; }
get
{
return _hideComputerName;
}
set
{

View file

@ -533,7 +533,10 @@ namespace System.Management.Automation
internal PSEventManager EventManager
{
get { return _eventManager; }
get
{
return _eventManager;
}
set
{

View file

@ -669,7 +669,10 @@ namespace Microsoft.PowerShell.Commands
return _sessionOption;
}
set { _sessionOption = value; }
set
{
_sessionOption = value;
}
}
private PSSessionOption _sessionOption;
@ -707,7 +710,10 @@ namespace Microsoft.PowerShell.Commands
[Parameter(ParameterSetName = NewPSSessionCommand.UriParameterSet)]
public virtual string CertificateThumbprint
{
get { return _thumbPrint; }
get
{
return _thumbPrint;
}
set
{
@ -4353,7 +4359,10 @@ namespace System.Management.Automation.Remoting
/// </summary>
public AuthenticationMechanism ProxyAuthentication
{
get { return _proxyAuthentication; }
get
{
return _proxyAuthentication;
}
set
{

View file

@ -281,7 +281,10 @@ namespace Microsoft.PowerShell.Commands
[Parameter()]
public SwitchParameter WriteEvents
{
get { return _writeStateChangedEvents; }
get
{
return _writeStateChangedEvents;
}
set
{
@ -294,7 +297,10 @@ namespace Microsoft.PowerShell.Commands
[Parameter()]
public SwitchParameter WriteJobInResults
{
get { return _outputJobFirst; }
get
{
return _outputJobFirst;
}
set
{

View file

@ -505,7 +505,10 @@ namespace Microsoft.PowerShell.Commands
[ValidateNotNullOrEmpty]
public virtual Version PSVersion
{
get { return _psVersion; }
get
{
return _psVersion;
}
set
{

View file

@ -78,7 +78,10 @@ namespace Microsoft.PowerShell.Commands
ParameterSetName = GetPSSessionCommand.ComputerInstanceIdParameterSet)]
public string ApplicationName
{
get { return _appName; }
get
{
return _appName;
}
set
{
@ -202,7 +205,10 @@ namespace Microsoft.PowerShell.Commands
[Credential()]
public PSCredential Credential
{
get { return _psCredential; }
get
{
return _psCredential;
}
set
{
@ -223,7 +229,10 @@ namespace Microsoft.PowerShell.Commands
[Parameter(ParameterSetName = GetPSSessionCommand.ConnectionUriInstanceIdParameterSet)]
public AuthenticationMechanism Authentication
{
get { return _authentication; }
get
{
return _authentication;
}
set
{
@ -245,7 +254,10 @@ namespace Microsoft.PowerShell.Commands
[Parameter(ParameterSetName = GetPSSessionCommand.ConnectionUriInstanceIdParameterSet)]
public string CertificateThumbprint
{
get { return _thumbprint; }
get
{
return _thumbprint;
}
set
{

View file

@ -91,7 +91,10 @@ namespace Microsoft.PowerShell.Commands
[Credential()]
public override PSCredential Credential
{
get { return base.Credential; }
get
{
return base.Credential;
}
set
{

View file

@ -208,7 +208,10 @@ namespace System.Management.Automation.Runspaces
/// </summary>
public int OpenTimeout
{
get { return _openTimeout; }
get
{
return _openTimeout;
}
set
{
@ -598,7 +601,10 @@ namespace System.Management.Automation.Runspaces
/// </summary>
public override string CertificateThumbprint
{
get { return _thumbPrint; }
get
{
return _thumbPrint;
}
set
{
@ -675,7 +681,10 @@ namespace System.Management.Automation.Runspaces
/// </summary>
public AuthenticationMechanism ProxyAuthentication
{
get { return _proxyAuthentication; }
get
{
return _proxyAuthentication;
}
set
{
@ -702,7 +711,10 @@ namespace System.Management.Automation.Runspaces
/// </summary>
public PSCredential ProxyCredential
{
get { return _proxyCredential; }
get
{
return _proxyCredential;
}
set
{
@ -1583,7 +1595,10 @@ namespace System.Management.Automation.Runspaces
/// </summary>
public override PSCredential Credential
{
get { return _credential; }
get
{
return _credential;
}
set
{
@ -1705,7 +1720,10 @@ namespace System.Management.Automation.Runspaces
/// </summary>
public string AppDomainName
{
get { return _appDomainName; }
get
{
return _appDomainName;
}
set
{
@ -1812,7 +1830,10 @@ namespace System.Management.Automation.Runspaces
/// </summary>
public override PSCredential Credential
{
get { return _credential; }
get
{
return _credential;
}
set
{
@ -2795,7 +2816,10 @@ namespace System.Management.Automation.Runspaces
/// </summary>
public override PSCredential Credential
{
get { return _credential; }
get
{
return _credential;
}
set
{
@ -2920,7 +2944,10 @@ namespace System.Management.Automation.Runspaces
/// </summary>
public override PSCredential Credential
{
get { return _credential; }
get
{
return _credential;
}
set
{

View file

@ -142,7 +142,10 @@ namespace System.Management.Automation.Remoting
/// </summary>
internal int BlobLength
{
get { return _blobLength; }
get
{
return _blobLength;
}
set
{
@ -156,7 +159,10 @@ namespace System.Management.Automation.Remoting
/// </summary>
internal byte[] Blob
{
get { return _blob; }
get
{
return _blob;
}
set
{

View file

@ -88,7 +88,10 @@ namespace System.Management.Automation.Remoting
internal Fragmentor Fragmentor
{
get { return _fragmentor; }
get
{
return _fragmentor;
}
set
{

View file

@ -331,7 +331,10 @@ namespace Microsoft.PowerShell.Commands
[Parameter]
public ScopedItemOptions Options
{
get { return _options; }
get
{
return _options;
}
set
{

View file

@ -361,7 +361,10 @@ namespace Microsoft.PowerShell.Commands
[Parameter]
public ScopedItemOptions Options
{
get { return _options; }
get
{
return _options;
}
set
{

View file

@ -263,7 +263,10 @@ namespace System.Management.Automation
/// </summary>
public bool WasThrownFromThrowStatement
{
get { return _thrownByThrowStatement; }
get
{
return _thrownByThrowStatement;
}
set
{

View file

@ -1449,7 +1449,10 @@ namespace System.Management.Automation
/// </summary>
public PSTraceSourceOptions Options
{
get { return _flags; }
get
{
return _flags;
}
set
{