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!

ICodeSourceFile.CreateReturnValueStatement

Constructs a return value statement.

[Visual Basic]
Function CreateReturnValueStatement( _
   ByVal method As ICodeMethod, _
   ByVal returnvalueType As ICodeClass, _
   ByVal returnValue As Object _
) As ICodeReturnValueStatement
[C#]
ICodeReturnValueStatement CreateReturnValueStatement(
   ICodeMethod method,
   ICodeClass returnvalueType,
   object returnValue
);
[C++]
ICodeReturnValueStatement* CreateReturnValueStatement(
   ICodeMethod* method,
   ICodeClass* returnvalueType,
   Object* returnValue
) = 0;
[JScript]
function CreateReturnValueStatement(
   method : ICodeMethod,
   returnvalueType : ICodeClass,
   returnValue : Object
) : ICodeReturnValueStatement;

Parameters

method
The method which will be returning a value.
returnvalueType
The type of value to be returned.
returnValue
The value to be returned.

Return Value

The newly created return value statement.

See Also

ICodeSourceFile Interface | ICodeSourceFile Members | System.ComponentModel.Design.CodeModel Namespace