SurrogateSelector.AddSurrogate メソッド
アセンブリ: mscorlib (mscorlib.dll 内)
構文Public Overridable Sub AddSurrogate ( _ type As Type, _ context As StreamingContext, _ surrogate As ISerializationSurrogate _ )
Dim instance As SurrogateSelector Dim type As Type Dim context As StreamingContext Dim surrogate As ISerializationSurrogate instance.AddSurrogate(type, context, surrogate)
public virtual void AddSurrogate ( Type type, StreamingContext context, ISerializationSurrogate surrogate )
public: virtual void AddSurrogate ( Type^ type, StreamingContext context, ISerializationSurrogate^ surrogate )
public function AddSurrogate ( type : Type, context : StreamingContext, surrogate : ISerializationSurrogate )
例外
使用例AddSurrogate メソッドを呼び出すコード例を次に示します。このコード例は、SurrogateSelector クラスのトピックで取り上げているコード例の一部分です。
// Create a SurrogateSelector. SurrogateSelector ss = new SurrogateSelector(); // Tell the SurrogateSelector that Employee objects are serialized and deserialized // using the EmployeeSerializationSurrogate object. ss.AddSurrogate(typeof(Employee), new StreamingContext(StreamingContextStates.All), new EmployeeSerializationSurrogate());
プラットフォームWindows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
参照Weblioに収録されているすべての辞書からSurrogateSelector.AddSurrogate メソッドを検索する場合は、下記のリンクをクリックしてください。
全ての辞書からSurrogateSelector.AddSurrogate メソッド
を検索
- SurrogateSelector.AddSurrogate メソッドのページへのリンク