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
- str
Type: System. . :: . .String
The string to search for in the intern pool.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.