Share via


IsInterned Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Retrieves a reference to a specified String.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
Public Shared Function IsInterned ( _
    str As String _
) As String
public static string IsInterned(
    string str
)
public:
static String^ IsInterned(
    String^ str
)
static member IsInterned : 
        str:string -> string 
public static function IsInterned(
    str : String
) : String

Parameters

Return Value

Type: System. . :: . .String
A reference to str if it is in the common language runtime intern pool; otherwise, nullNothingnullptrunita null reference (Nothing in Visual Basic).

Exceptions

Exception Condition
ArgumentNullException

str is null Nothing nullptr unit a null reference (Nothing in Visual Basic) .

.NET Framework Security

See Also

Reference

String Class

System Namespace