Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Converts the newlines in the specified text to the specified newline.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Syntax
'Declaration
Public Function NormalizeNewlines ( _
input As String, _
newline As String _
) As String
'Usage
Dim instance As Source
Dim input As String
Dim newline As String
Dim returnValue As String
returnValue = instance.NormalizeNewlines(input, _
newline)
public string NormalizeNewlines(
string input,
string newline
)
public:
String^ NormalizeNewlines(
String^ input,
String^ newline
)
member NormalizeNewlines :
input:string *
newline:string -> string
public function NormalizeNewlines(
input : String,
newline : String
) : String
Parameters
- input
Type: System.String
The text in which to convert the newlines.
- newline
Type: System.String
The newline to which to convert.
Return Value
Type: System.String
Returns a string containing the converted text.
Remarks
This method is used to convert carriage returns, line feeds, and carriage return/line feeds to the specified newline string.
.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.