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!

ICodeSourceFile.ClassForName

Creates an ICodeClass reference to a class with the name specified. This will take into account any imports or namespaces that this file uses. Basically it will do a lookup using the same rules that the compiler would.

[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 create a reference to.

Return Value

The newly created ICodeClass reference to the class specified.

Remarks

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

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