CSharpTest.Net
Protocol Property
See Also  Example Send Feedback Download Help File
CSharpTest.Net.RpcLibrary Assembly > CSharpTest.Net.RpcLibrary Namespace > RpcClientApi Class : Protocol Property

Glossary Item Box

The protocol that was provided to the constructor

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property Protocol As RpcProtseq
C# 
public RpcProtseq Protocol {get;}

Example

RpcLibrary/RpcLibrary.Test/TestClientApi.cs

C#Copy Code
using (RpcClientApi client = new RpcClientApi(Guid.NewGuid(), RpcProtseq.ncacn_ip_tcp, null, "123"))
    Assert.AreEqual(RpcProtseq.ncacn_ip_tcp, client.Protocol);
VB.NETCopy Code
Using client As New RpcClientApi(Guid.NewGuid(), RpcProtseq.ncacn_ip_tcp, Nothing, "123")
    Assert.AreEqual(RpcProtseq.ncacn_ip_tcp, client.Protocol)
End Using

Requirements

Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7

See Also

Generated with Document! X 2011 by Innovasys