Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
Syntax
Visual Basic (Declaration) | |
---|
<SecurityPermissionAttribute(Flags=SecurityPermissionFlag.Infrastructure,
Assertion=False,
UnmanagedCode=False,
SkipVerification=False,
Execution=False,
ControlThread=False,
ControlEvidence=False,
ControlPolicy=False,
SerializationFormatter=False,
ControlDomainPolicy=False,
ControlPrincipal=False,
ControlAppDomain=False,
RemotingConfiguration=False,
Infrastructure=True,
BindingRedirects=False,
Action=SecurityAction.Demand Or _
SecurityAction.Deny Or _
SecurityAction.LinkDemand,
Unrestricted=False)>
Public Overridable Function CreateObjRef( _
ByVal requestedType As Type _
) As ObjRef |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As Medical3DControl
Dim requestedType As Type
Dim value As ObjRef
value = instance.CreateObjRef(requestedType) |
C# | |
---|
[SecurityPermissionAttribute(Flags=SecurityPermissionFlag.Infrastructure,
Assertion=false,
UnmanagedCode=false,
SkipVerification=false,
Execution=false,
ControlThread=false,
ControlEvidence=false,
ControlPolicy=false,
SerializationFormatter=false,
ControlDomainPolicy=false,
ControlPrincipal=false,
ControlAppDomain=false,
RemotingConfiguration=false,
Infrastructure=true,
BindingRedirects=false,
Action=SecurityAction.Demand |
SecurityAction.Deny |
SecurityAction.LinkDemand,
Unrestricted=false)]
public virtual ObjRef CreateObjRef(
Type requestedType
) |
C++/CLI | |
---|
[SecurityPermissionAttribute(Flags=SecurityPermissionFlag.Infrastructure,
Assertion=false,
UnmanagedCode=false,
SkipVerification=false,
Execution=false,
ControlThread=false,
ControlEvidence=false,
ControlPolicy=false,
SerializationFormatter=false,
ControlDomainPolicy=false,
ControlPrincipal=false,
ControlAppDomain=false,
RemotingConfiguration=false,
Infrastructure=true,
BindingRedirects=false,
Action=SecurityAction.Demand |
SecurityAction.Deny |
SecurityAction.LinkDemand,
Unrestricted=false)]
public:
virtual ObjRef^ CreateObjRef(
Type^ requestedType
) |
Parameters
- requestedType
- The System.Type of the object that the new System.Runtime.Remoting.ObjRef will reference.
Return Value
Information required to generate a proxy.
Exceptions
Requirements
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7
See Also