public class MetaData
|
ctor #1 | Default constructor. This constructor is called by derived class constructors to initialize state in this type. |
ConvertCodeSourceFileToAssemblyFile | Compiles a specified code source file into a run-time assembly file. |
ConvertCodeSourceStreamToAssemblyFile | Compiles specified code source streams into a run-time assembly file. |
ConvertSchemaStreamToCodeSourceStream | Overloaded:ConvertSchemaStreamToCodeSourceStream(bool clientProxy, string outputDirectory, Stream inputStream, ArrayList outCodeStreamList) Converts the specified schema definition into C# proxy source code. |
ConvertSchemaStreamToCodeSourceStream | Overloaded:ConvertSchemaStreamToCodeSourceStream(bool clientProxy, string outputDirectory, Stream inputStream, ArrayList outCodeStreamList, string proxyUrl) Converts the specified schema definition into C# proxy source code for a remote object located at the specified URL. |
ConvertSchemaStreamToCodeSourceStream | Overloaded:ConvertSchemaStreamToCodeSourceStream(bool clientProxy, string outputDirectory, Stream inputStream, ArrayList outCodeStreamList, string proxyUrl, string proxyNamespace) Converts the specified schema definition into C# proxy source code for a remote object located at the specified URL and in the provided class namespace. |
ConvertTypesToSchemaToFile | Overloaded:ConvertTypesToSchemaToFile(ServiceType[] types, SdlType sdlType, string path) Converts the specified service types to XML schema, and writes it to a file specified by name. |
ConvertTypesToSchemaToFile | Overloaded:ConvertTypesToSchemaToFile(Type[] types, SdlType sdlType, string path) Converts the specified object types to XML schema, and writes it to a file specified by name. |
ConvertTypesToSchemaToStream | Overloaded:ConvertTypesToSchemaToStream(ServiceType[] serviceTypes, SdlType sdlType, Stream outputStream) Converts the specified service types to XML schema, and writes it to a specified stream. |
ConvertTypesToSchemaToStream | Overloaded:ConvertTypesToSchemaToStream(Type[] types, SdlType sdlType, Stream outputStream) Converts the specified object types to XML schema, and writes it to a specified stream. |
Equals (inherited from System.Object) |
See base class member description: System.Object.Equals Derived from System.Object, the primary base class for all objects. |
GetHashCode (inherited from System.Object) |
See base class member description: System.Object.GetHashCode Derived from System.Object, the primary base class for all objects. |
GetType (inherited from System.Object) |
See base class member description: System.Object.GetType Derived from System.Object, the primary base class for all objects. |
RetrieveSchemaFromUrlToFile | Downloads the XML schema from a URL, and writes it to the specified file. |
RetrieveSchemaFromUrlToStream | Downloads the XML schema from a URL, and writes it to the specified stream. |
SaveStreamToFile | Saves the input stream to a file with the specified name. |
ToString (inherited from System.Object) |
See base class member description: System.Object.ToString Derived from System.Object, the primary base class for all objects. |
Finalize (inherited from System.Object) |
See base class member description: System.Object.Finalize Derived from System.Object, the primary base class for all objects. |
MemberwiseClone (inherited from System.Object) |
See base class member description: System.Object.MemberwiseClone Derived from System.Object, the primary base class for all objects. |
Hierarchy:
public MetaData(); |
public static void ConvertCodeSourceFileToAssemblyFile( |
codePath
assemblyPath
strongNameFilename
CsSource.cs
file converted here contains C# source code.using System; using System.Runtime.Remoting.MetadataServices; public class Test { public static void Main() { MetaData.ConvertCodeSourceFileToAssemblyFile("CsSource.cs", "testAssm.dll", ""); } }
public static void ConvertCodeSourceStreamToAssemblyFile( |
outCodeStreamList
assemblyPath
strongNameFilename
public static void ConvertSchemaStreamToCodeSourceStream( |
clientProxy
outputDirectory
inputStream
outCodeStreamList
public static void ConvertSchemaStreamToCodeSourceStream( |
clientProxy
outputDirectory
inputStream
outCodeStreamList
proxyUrl
public static void ConvertSchemaStreamToCodeSourceStream( |
clientProxy
outputDirectory
inputStream
outCodeStreamList
proxyUrl
proxyNamespace
public static void ConvertTypesToSchemaToFile( |
types
sdlType
path
public static void ConvertTypesToSchemaToFile( |
types
sdlType
path
using System; using System.Runtime.Remoting.Metadata; using System.Runtime.Remoting.MetadataServices; public class Test { class TestClass { int integer; public double dFloatingPoint = 5.1999; public int Int { get { return integer; } set { integer = value; } } public void Print () { Console.WriteLine("The double is equal to {0}.", dFloatingPoint); } } public static void Main() { Type[] types = new Type[4]; String s = "a"; int i = -5; double d = 3.1415; TestClass tc = new TestClass(); types[0] = s.GetType(); types[1] = i.GetType(); types[2] = d.GetType(); types[3] = tc.GetType(); MetaData.ConvertTypesToSchemaToFile(types, SdlType.Wsdl, "test.xml"); } }
public static void ConvertTypesToSchemaToStream( |
serviceTypes
sdlType
outputStream
public static void ConvertTypesToSchemaToStream( |
types
sdlType
outputStream
using System; using System.Runtime.Remoting.Metadata; using System.Runtime.Remoting.MetadataServices; using System.IO; public class Test { class TestClass { int integer; public double dFloatingPoint = 5.1999; public int Int { get { return integer; } set { integer = value; } } public void Print () { Console.WriteLine("The double is equal to {0}.", dFloatingPoint); } } public static void Main() { Type[] types = new Type[4]; String s = "a"; int i = -5; double d = 3.1415; TestClass tc = new TestClass(); types[0] = s.GetType(); types[1] = i.GetType(); types[2] = d.GetType(); types[3] = tc.GetType(); FileStream fs = new FileStream("test.xml", FileMode.OpenOrCreate); MetaData.ConvertTypesToSchemaToStream(types, SdlType.Wsdl, fs); } }
~MetaData(); |
public virtual int GetHashCode(); |
public Type GetType(); |
protected object MemberwiseClone(); |
url
path
url
outputStream
inputStream
path
public virtual string ToString(); |