Date and Time Parameters
The following table lists recommended names and functionality for parameters that handle date and time information. Date and time parameters are typically used to record when something is created or accessed.
Parameter | Functionality |
---|---|
Accessed Data type: SwitchParameter |
Implement this parameter so that when it is specified the cmdlet will operate on the resources that have been accessed based on the date and time specified by the Before and After parameters. If this parameter is specified, the Created and Modified parameters must be not be specified. |
After Data type: DateTime |
Implement this parameter to specify the date and time after which the cmdlet was used. For the After parameter to work, the cmdlet must also have an Accessed, Created, or Modified parameter. And, that parameter must be set to true when the cmdlet is called. |
Before Data type: DateTime |
Implement this parameter to specify the date and time before which the cmdlet was used. For the Before parameter to work, the cmdlet must also have an Accessed, Created, or Modified parameter. And, that parameter must be set to true when the cmdlet is called. |
Created Data type: SwitchParameter |
Implement this parameter so that when it is specified the cmdlet will operate on the resources that have been created based on the date and time specified by the Before and After parameters. If this parameter is specified, the Accessed and Modified parameters must not be specified. |
Exact Data type: SwitchParameter |
Implement this parameter so that when it is specified the resource term must match the resource name exactly. When the parameter is not specified the resource term and name do not need to match exactly. |
Modified Data type: DateTime |
Implement this parameter so that when it is specified the cmdlet will operate on resources that have been changed based on the date and time specified by the Before and After parameters. If this parameter is specified, the Accessed and Created parameters must not be specified. |
See Also
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för