Top > メソッド名のつけ方

PowerShellの動詞達 Edit

Common Verbs Edit

VerbActionComments
AddAdds a resource to a container, or attaches an item to another item. For example, the Add-Content cmdlet adds content to a file. This verb is paired with Remove.For this action, do not use verbs such as Append, Attach, Concatenate, or Insert.
ClearRemoves all the resources from a container but does not delete the container. For example, the Clear-Content cmdlet removes the contents of a file but does not delete the file.For this action, do not use verbs such as Flush, Erase, Release, Unmark, Unset, or Nullify.
CloseChanges the state of a resource to make it inaccessible, unavailable, or unusable. This verb is paired with Open.
CopyCopies a resource to another name or to another container. For example, the Copy-Item cmdlet that is used to access stored data copies an item from one location in the data store to another location.For this action, do not use verbs such as Duplicate, Clone, or Replicate.
EnterSpecifies an action that allows the user to move into a resource. For example, the Enter-PSSession cmdlet places the user in an interactive session. This verb is paired with Exit.For this action, do not use verbs such as Push or Into.
ExitSets the current environment or context to the most recently used context. For example, the Exit-PSSession cmdlet places the user in the session that was used to start the interactive session. This verb is paired with Enter.For this action, do not use verbs such as Pop or Out.
FindLooks for an object in a container that is unknown, implied, optional, or specified.
FormatArranges objects in a specified form or layout.
GetSpecifies an action that retrieves a resource. This verb is paired with Set.For this action, do not use verbs such as Read, Open, Cat, Type, Dir, Obtain, Dump, Acquire, Examine, Find, or Search for this action.
HideMakes a resource undetectable. For example, a cmdlet whose name includes the Hide verb might conceal a service from a user. This verb is paired with Show.For this action, do not use a verb such as Block.
JoinCombines resources into one resource. For example, the Join-Path cmdlet combines a path with one of its child paths to create a single path. This verb is paired with Split.For this action, do not use verbs such as Combine, Unite, Connect, or Associate.
LockSecures a resource. This verb is paired with Unlock.For this action, do not use verbs such as Restrict or Secure.
MoveMoves a resource from one location to another. For example, the Move-Item cmdlet moves an item from one location in the data store to another location.For this action, do not use verbs such as Transfer, Name, or Migrate.
NewCreates an empty resource that is not associated with any content. (If it does not make sense to create the resource without providing initial data, use the Set verb instead).For this action, do not use verbs such as Create, Generate, Build, Make, or Allocate.
OpenChanges the state of a resource to make it accessible, available, or usable. This verb is paired with Close.
PopRemoves an item from the top of a stack. For example, the Pop-Location cmdlet changes the current location to the location that was most recently pushed onto the stack.
PushAdds an item to the top of a stack. For example, the Push-Location cmdlet pushes the current location onto the stack.
RedoResets a resource to the state that was undone.
RemoveDeletes a resource from a container. For example, the Remove-Variable cmdlet deletes a variable and its value. This verb is paired with Add.For this action, do not use verbs such as Clear, Cut, Dispose, Discard, or Erase.
RenameChanges the name of a resource. For example, the Rename-Item cmdlet, which is used to access stored data, changes the name of an item in the data store.For this action, do not use a verb such as Change.
ResetSets a resource back to its original state.
SearchCreates a reference to a resource in a container.o not use verbs such as Find or Locate.
SelectLocates a resource in a container. For example, the Select-String cmdlet finds text in strings and files.For this action, do not use verbs such as Find or Locate.
SetCreates a resource that contains some data, or replaces data on an existing resource. (Use this verb if it makes no sense to create the resource without attaching data. To create the resource without attaching content, use the New verb. For example, the Set-Date cmdlet changes the system time on the local computer. This verb is paired with Get.For this action, do not use verbs such as Write, Reset, Assign, or Configure.
ShowMakes a resource visible to the user. This verb is paired with Hide.For this action, do not use verbs such as Display or Produce.
SkipSeparates parts of a resource. For example, the Split-Path cmdlet returns different parts of a path. This verb is paired with Join.For this action, do not use a verb such as Separate.
SplitSpecifies an action that separates parts of a resource. This verb is paired with Join.For this action, do not use a verb such Separate.
StepMoves to the next point or resource in a sequence.
SwitchSpecifies an action that alternates between two resources, such as to change between two locations, responsibilities, or states.
UndoSets a resource to its previous state.
UnlockReleases a resource that was locked. This verb is paired with Lock.For this action, do not use verbs such as Release, Unrestrict, or Unsecure.
WatchContinually inspects or monitors a resource for changes.

Communications Verbs Edit

VerbActionComments
ConnectCreates a link between a source and a destination. This verb is paired with Disconnect.For this action, do not use verbs such as Join or Telnet.
DisconnectBreaks the link between a source and a destination. This verb is paired with Connect.For this action, do not use verbs such as Break or Logoff.
ReadAcquires information from a source. This verb is paired with Write.For this action, do not use verbs such as Acquire, Prompt, or Get.
ReceiveAccepts information sent from a source. This verb is paired with Send.For this action, do not use verbs such as Read, Accept, or Peek.
SendDelivers information to a destination. This verb is paired with Receive.For this action, do not use verbs such as Put, Broadcast, Mail, or Fax.
WriteAdds information to a target. This verb is paired with Read.For this action, do not use verbs such as Put or Print.

Data Verbs Edit

Verb NameActionComments
BackupStores data by replicating it.For this action, do not use verbs such as Save or Burn.
CheckpointCreates a snapshot of the current state of the data or of its configuration.For this action, do not use a verb such as Diff.
CompareEvaluates the data from one resource against the data from another resource.For this action, do not use a verb such as Diff.
CompressCompacts the data of a resource. Pairs with Expand.For this action, do not use a verb such as Compact.
ConvertChanges the data from one representation to another when the cmdlet supports bidirectional conversion or when the cmdlet supports conversion between multiple data types.For this action, do not use verbs such as Change, Resize, or Resample.
ConvertFromConverts one primary type of input (the cmdlet noun indicates the input)?to one or more supported output types.For this action, do not use verbs such as Export, Output, or Out.
ConvertToConverts from one or more types of?input to a primary output type (the cmdlet noun indicates the output type).For this action, do not use verbs such as Import, Input, or In.
DismountDetaches a named entity from a location. This verb is paired with Mount.For this action, do not use a verb such as Unlink.
EditModifies existing data by adding or removing content.For this action, do not use verbs such as Change, Update, or Modify for this action.
ExpandRestores the data of a resource that has been compressed to its original state. This verb is paired with Compress.For this action, do not use a verb such as Explode.
ExportEncapsulates the primary input into a persistent data store, such as a file, or into an interchange format. This verb is paired with Import.For this action, do not use verbs such as Extract or Backup.
GroupArranges or associates one or more resources.For this action, do not use verbs such as Aggregate, Arrange, Associate, or Correlate.
ImportCreates a resource from data that is stored in a persistent data store (such as a file) or in an interchange format. For example, the Import-CSV cmdlet imports data from a comma-separated value (CSV) file to objects that can be used by other cmdlets. This verb is paired with Export.For this action, do not use verbs such as BulkLoad or Load.
InitializePrepares a resource for use, and sets it to a default state.For this action, do not use verbs such as Erase, Renew, Rebuild, Reinitialize, or Setup.
LimitApplies constraints to a resource.For this action, do not use a verb such as Quota.
MergeCreates a single resource from multiple resources.For this action, do not use verbs such as Combine or Join.
MountAttaches a named entity to a location. This verb is paired with Dismount.
OutSends data out of the environment. For example, the Out-Printer cmdlet sends data to a printer.
PublishMakes a resource available to others. This verb is paired with Unpublish.For this action, do not use verbs such as Deploy, Release, or Install.
RestoreSets a resource to a predefined state, such as a state set by Checkpoint. For example, the Restore-Computer cmdlet starts a system restore on the local computer.For this action, do not use verbs such as Repair, Return, Undo, or Fix.
SavePreserves data to avoid loss.
SyncAssures that two or more resources are in the same state.For this action, do not use verbs such as Coerce, or Match.
UnpublishMakes a resource unavailable to others. This verb is paired with Publish.For this action, do not use verbs such as Uninstall, Revert, or Hide.
UpdateBrings a resource up-to-date to maintain its state, accuracy, conformance, or compliance.. For example, the Update-FormatData cmdlet updates and adds formatting files to the current Windows?PowerShell console.For this action, do not use verbs such as Refresh, Renew, Recalculate, or Re-index.

Diagnostic Verbs Edit

VerbActionComments
DebugExamines a resource to diagnose operational problems.For this action, do not use a verb such as Diagnose.
MeasureIdentifies resources that are consumed by a specified operation, or retrieves statistics about a resource.For this action, do not use verbs such as Calculate, Determine, or Analyze.
PingDetermines if a resource is active and if it is responding to requests.For this action, do not use verbs such as Connect or Test.
RepairRestores a resource to a usable conditionFor this action, do not use verbs such as Fix or Restore.
ResolveMaps a shorthand representation of a resource to a more complete representation.For this action, do not use verbs such as Expand or Determine.
TestVerifies the operation or consistency of a resource.For this action, do not use verbs such as Diagnose, Analyze, Salvage, or Verify.
TraceTracks the activities of a resource.For this action, do not use verbs such as Track, Follow, Inspect, or Dig.

Lifecycle Verbs Edit

VerbActionComments
ApproveConfirms or agrees to the status of a resource or process.
AssertAffirms the state of a resource.For this action, do not use a verb such as Certify.
CompleteConcludes an operation.
ConfirmAcknowledges, verifies, or validates the state of a resource or process.For this action, do not use verbs such as Acknowledge, Agree, Certify, Validate, or Verify.
DenyRefuses, objects, blocks, or opposes the state of a resource or process.For this action, do not use verbs such as Block, Object, Refuse, or Reject.
DisableConfigures a resource to an unavailable or inactive state. For example, the Disable-PSBreakpoint cmdlet makes a breakpoint inactive. This verb is paired with Enable.For this action, do not use verbs such as Halt or Hide.
EnableConfigures a resource to an available or active state. For example, the Enable-PSBreakpoint cmdlet makes a breakpoint active. This verb is paired with Disable.For this action, do not use verbs such as Start or Begin.
InstallPlaces a resource in a location, and optionally initializes it. This verb is paired with Uninstall.For this action, do not a use verb such as Setup.
InvokePerforms an action, such as running a command or a method.For this action, do not use verbs such as Run or Start.
RegisterCreates an entry for a resource in a repository such as a database. This verb is paired with Unregister.
RequestAsks for a resource or asks for permissions.
RestartStops an operation and then starts it again. For example, the Restart-Service cmdlet stops and then starts a service.For this action, do not use a verb such as Recycle.
ResumeStarts an operation that has been suspended. For example, the Resume-Service cmdlet starts a service that has been suspended. This verb is paired with Suspend.
StartInitiates an operation. For example, the Start-Service cmdlet starts a service. This verb is paired with Stop.For this action, do not use verbs such as Launch, Initiate, or Boot.
StopDiscontinues an activity. This verb is paired with Start.For this action, do not use verbs such as End, Kill, Terminate, or Cancel.
SubmitPresents a resource for approval.For this action, do not use a verb such as Post.
SuspendPauses an activity. For example, the Suspend-Service cmdlet pauses a service. This verb is paired with Resume.For this action, do not use a verb such as Pause.
UninstallRemoves a resource from an indicated location. This verb is paired with Install.
UnregisterRemoves the entry for a resource from a repository. This verb is paired with Register.For this action, do not use a verb such as Remove.
WaitPauses an operation until a specified event occurs. For example, the Wait-PSJob cmdlet pauses operations until one or more of the background jobs are complete.For this action, do not use verbs such as Sleep or Pause.

Security Verbs Edit

VerbActionComments
BlockRestricts access to a resource. This verb is paired with Unblock.For this action, do not use verbs such as Prevent, Limit, or Deny.
GrantAllows access to a resource. This verb is paired with Revoke.For this action, do not use verbs such as Allow or Enable.
ProtectSafeguards a resource from attack or loss. This verb is paired with Unprotect.For this action, do not use verbs such as Encrypt, Safeguard, or Seal.
RevokeSpecifies an action that does not allow access to a resource. This verb is paired with Grant.For this action, do not use verbs such as Remove or Disable.
UnblockRemoves restrictions to a resource. This verb is paired with Block.For this action, do not use verbs such as Clear or Allow.
UnprotectRemoves safeguards from a resource that were added to prevent it from attack or loss. This verb is paired with Protect.For this action, do not use verbs such as Decrypt or Unseal.

関連リンク Edit

八割の動詞 - Steps to phantasien
http://steps.dodgson.org/?date=20090314



URL B I U SIZE Black Maroon Green Olive Navy Purple Teal Gray Silver Red Lime Yellow Blue Fuchsia Aqua White

Reload   New Lower page making Edit Freeze Diff Upload Copy Rename   Front page List of pages Search Recent changes Backup Referer   Help   RSS of recent changes