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!

ICodeClass.ClassForName

Creates an ICodeClass object representing the class with the name specified.

[Visual Basic]
Function ClassForName( _
   ByVal className As String _
) As ICodeClass
[C#]
ICodeClass ClassForName(
   string className
);
[C++]
ICodeClass* ClassForName(
   String* className
) = 0;
[JScript]
function ClassForName(
   className : String
) : ICodeClass;

Parameters

className
The name of the class to represent with an ICodeClass object.

Return Value

An ICodeClass object for the specified class.

Remarks

This method takes into account any imports or namespaces that the specified class uses. It looks these up using the same rules that the compiler would use.

Note   Calling ClassForName twice with the same name will not return the same instance of the ICodeClass object. Each request to ClassForName will generate a new object.

See Also

ICodeClass Interface | ICodeClass Members | System.ComponentModel.Design.CodeModel Namespace