NetworkStream.Length属性 [英] NetworkStream.Length Property

查看:152
本文介绍了NetworkStream.Length属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想使用此属性,但在MSDN中,它说"此属性当前不受支持,并且始终抛出NotSupportedException。"。什么时候会得到支持?你能建议任何其他方法或属性吗?

Hi All,

I want to use this property but in MSDN it says "This property is not currently supported and always throws a NotSupportedException.". When will it be supported? Can you suggest any other method or property?

推荐答案

这意味着Property存在但是没有任何实现,当你调用它时它引发了NotSuported异常,因为它有些像:

Its means that Property exists but there is not any implementation in it and when you call it it raises NotSuported exception because its somehting like:

public long Length

public long Length

{

get {

抛出新的NotSupportedException();

                      throw new NotSupportedException();

}

}

告诉我你的场景是什么,为什么你需要获得流的长度,可能有很多替代品让你的工作没有这个属性。

Tell me what your scenerio and why do you need to get length of the stream, there may be many alternates to get your work done without this property.

最好的问候,

Rizwan


这篇关于NetworkStream.Length属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆