Differences
This shows you the differences between the selected revisions of the page.
2019-03-01 | 2019-03-01 | ||
created (martin) | values by name not supported in powershell (martin) | ||
Line 3: | Line 3: | ||
You are probably passing the options in a wrong order. Particularly, you cannot skip parameters, even if you do not need to use them. | You are probably passing the options in a wrong order. Particularly, you cannot skip parameters, even if you do not need to use them. | ||
- | For example, you want to call [[library_session_putfiles|''Session.PutFiles'' method]] and you provide the ''[[library_transferoptions|TransferOptions]] options'' parameter. The ''options'' is 4th parameter. Even though the 3rd ''bool remove'' parameter is optional and you are not interested in giving it a non-default value, you have to. | + | For example, you want to call [[library_session_putfiles|''Session.PutFiles'' method]] and you provide the ''[[library_transferoptions|TransferOptions]] options'' parameter. The ''options'' is 4th parameter. Even though the 3rd ''bool remove'' parameter is optional and you are not interested in giving it a non-default value, you have to (PowerShell does not support passing values to optional parameters by name). |
This is the correct call: | This is the correct call: |