Methods.TypePrefix Property
Gets the string to place before the return type of a method.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Syntax
'宣告
Public Overridable ReadOnly Property TypePrefix As String
Get
'用途
Dim instance As Methods
Dim value As String
value = instance.TypePrefix
public virtual string TypePrefix { get; }
public:
virtual property String^ TypePrefix {
String^ get ();
}
abstract TypePrefix : string
override TypePrefix : string
function get TypePrefix () : String
Property Value
Type: System.String
The string to place before a method's return type.
Remarks
The value returned from this property is used to format the method signatures that appear in the IntelliSense method tip operation.
In Visual Basic, the return type of a function follows the function declaration, separated by the string " as ", for example, Function MyFunc() as Integer. The " as " string is prefixed to the return type.
Return nulla null reference (Nothing in Visual Basic) if you do not need to prefix the type with any text.
The base property returns nulla null reference (Nothing in Visual Basic).
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.