NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

in

Indicates a parameter that is to be passed from the caller to the called method. This information is useful for custom marshaling.

[in]

Applies To

Parameter declarations.

Remarks

in is a single-use attribute. in is an alias for System.InterOp.InAttribute.

The in attribute can be used in combination with the out attribute. If a parameter has neither in nor out specified, its marshaling depends on its parameter modifiers: the ref modifier implies [in, out] marshaling; the out modifier implies [out] marshaling; the absence of any modifier implies [in] marshaling.

Example

In this hypothetical spelling-checker interface, the word to be checked is marshaled [in] to the CheckSpelling method and an array of suggested spellings is marshaled [out] to the caller:

interface ISpellCheck {
   bool CheckSpelling([in]string word, [out]out string[] suggestions);
}

See Also

C# Attributes | out