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!

String.IsInterned

Retrieves the reference for the string.

[Visual Basic]
Public Shared Function IsInterned( _
   ByVal str As String _
) As String
[C#]
public static string IsInterned(
   string str
);
[C++]
public: static String* IsInterned(
   String* str
);
[JScript]
public static function IsInterned(
   str : String
) : String;

Parameters

str
The string to be interned.

Return Value

The reference to the string.

Exceptions

Exception Type Condition
ArgumentNullException Iif the string is null.

Remarks

The Intern method looks up the string in a table of string identities of AppDomain. It is used primarily for constants and returns a reference to the "official" copy of the string. This takes a string as an argument. If that string has already been interned, it returns a reference to the interned object; otherwise it returns null.

Note that if the string is null, it will cause an exception to be thrown.

The other relevant method is Intern.

See Also

String Class | String Members | System Namespace